@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("/assets/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F2F1EE;
  --card: #FAF9F7;
  --ink: #1F1E1C;
  --mute: #6B6863;
  --soft: #9C9A95;
  --line: #E3E0DA;
  --dark: #2B2A28;
  --dark2: #3A3936;
  --brand: #4B4DF7;
  --success: #1E7B45;
  --on-dark: #EDEBE7;
  --gutter: clamp(16px, 5vw, 24px);
  --section: 64px;
}
@media (min-width: 900px) {
  :root { --section: 96px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1 { font-size: 34px; font-weight: 600; line-height: 1.35; margin: 0 0 16px; }
h2 { font-size: 24px; font-weight: 600; line-height: 1.45; margin: 0 0 16px; }
h1, h2 { text-wrap: balance; }
h3 { font-size: 20px; font-weight: 500; line-height: 1.5; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.small { font-size: 13px; color: var(--mute); }
.lead { color: var(--mute); }
.lead p { margin: 0 0 4px; }

.wrap { max-width: 960px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section:not(.dark) { padding-top: 0; }
.dark + .section:not(.dark) { padding-top: var(--section); }

/* header */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo img { height: 28px; width: auto; }
nav.links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
nav.links a { color: var(--mute); text-decoration: none; padding: 8px 0; }
nav.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .logo img { height: 32px; }
  nav.links { gap: 4px 24px; }
}

/* button, same as the app */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 12px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
/* btn-soft from the app, used while the store link is not ready */
.btn.soft {
  min-height: 50px;
  border-radius: 10px;
  background: #E4E1DC;
  color: #5C5953;
  cursor: default;
}
.btn.soft.secondary {
  min-height: 44px;
  padding: 0 20px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--mute);
  font-size: 15px;
  font-weight: 500;
}

/* hero */
.hero { display: grid; gap: 32px; align-items: center; text-align: center; }
.hero .piece { width: clamp(280px, 30vw, 320px); margin: 0 auto; }
.piece { filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .18)); }
.hero .lead { margin-bottom: 24px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr auto; text-align: start; gap: 64px; }
  .hero .piece { order: 2; }
}

/* cards */
.card { background: var(--card); border-radius: 14px; padding: 16px; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

/* how it works, rows like the app */
.steps { list-style: none; margin: 0; padding: 0 16px; background: var(--card); border-radius: 14px; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.steps li + li { border-top: 1px solid var(--line); }
/* number circle, same as .step .n in the app */
.num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.4px solid var(--ink);
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

/* dark section, like the lock screen */
.dark { background: var(--dark); color: var(--on-dark); }
.dark .card { background: var(--dark2); }
.dark .small { color: var(--soft); }
.dark .center { text-align: center; }
.dark .logo-white { height: 40px; width: auto; margin: 0 auto 24px; }
.dark h2 { font-size: 28px; margin-bottom: 32px; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; justify-content: center; }
.loop li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.loop .num { border-color: var(--on-dark); }
@media (min-width: 640px) {
  .loop { grid-template-columns: repeat(3, auto); gap: 48px; }
}

/* app screens */
.phones {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.phone { scroll-snap-align: center; margin: 0; }
.phone img {
  width: 100%;
  border-radius: 40px;
  border: 8px solid #1F1E1C;
  background: #1F1E1C;
  box-shadow: 0 0 0 1px #3A3936;
}
.phone figcaption { text-align: center; margin-top: 8px; }
@media (min-width: 900px) {
  .phones { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 32px; }
  .phone { max-width: 260px; margin: 0 auto; }
}

/* support */
.faq { display: grid; gap: 12px; }
details.card { padding: 0; }
summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 500;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
/* chevron, like .cv in the app */
summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--soft);
  border-bottom: 1.6px solid var(--soft);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}
details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details > div { padding: 0 16px 16px; }
details p { margin: 0 0 6px; }
details ol { margin: 0 0 8px; padding-inline-start: 22px; }

/* privacy */
.policy { max-width: 720px; }
.policy h2 { font-size: 20px; font-weight: 500; margin: 32px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.policy ul { padding-inline-start: 22px; margin: 0 0 12px; }
.policy li { margin-bottom: 6px; }
.policy .muted { color: var(--mute); font-size: 13px; }
.summary { background: var(--card); border-radius: 14px; padding: 16px 18px; margin: 16px 0; }
.summary ul:last-child { margin-bottom: 0; }

/* /t */
.tag { text-align: center; }
.tag .piece { width: clamp(240px, 60vw, 300px); margin: 0 auto 24px; }

/* 404 */
.notfound { text-align: center; }
.notfound .en { white-space: nowrap; }

/* footer */
footer { background: var(--dark); color: var(--on-dark); padding-block: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer img { height: 28px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; margin-inline: -8px; }
footer a { color: var(--on-dark); text-decoration: none; padding: 8px; }
footer a:hover { text-decoration: underline; }
