/* People Finder website. No external fonts or scripts. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5fb;
  --surface: #ffffff;
  --text: #1f1f2e;
  --muted: #5d5d70;
  --border: #e3e3ee;
  --brand: #5b5fc7;
  --brand-dark: #464aa8;
  --brand-soft: #e8e9fa;
  --ok: #13a10e;
  --shadow: 0 10px 30px rgba(43, 45, 110, 0.12);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15151d;
    --bg-soft: #1c1c27;
    --surface: #222230;
    --text: #f2f2f7;
    --muted: #a9a9bc;
    --border: #33334a;
    --brand: #8a8ef5;
    --brand-dark: #a6a9ff;
    --brand-soft: #2b2c4a;
    --ok: #54c24e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Segoe UI", "Segoe UI Web", Tahoma, "Noto Sans Arabic", system-ui, sans-serif;
}

a {
  color: var(--brand);
}

img {
  max-width: 100%;
  height: auto; /* keep the aspect ratio when width/height attributes are set */
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav {
  display: flex;
  gap: 20px;
  margin-inline-start: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav a:hover {
  color: var(--brand);
}

.lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

/* ---- hero ---- */
.hero {
  background: radial-gradient(ellipse at top, var(--brand-soft), transparent 70%);
  padding: 72px 0 40px;
  text-align: center;
}

.hero .badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.25;
  margin: 18px auto 14px;
  max-width: 820px;
}

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-shot {
  margin: 48px auto 0;
  width: 100%;
  max-width: 1000px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
}

/* ---- sections ---- */
section {
  padding: 64px 0;
}

section.soft {
  background: var(--bg-soft);
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 34px);
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

/* compare table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare tr:last-child td {
  border-bottom: 0;
}

.compare th {
  background: var(--brand-soft);
  font-size: 15px;
}

.compare td:first-child {
  color: var(--muted);
  width: 42%;
}

.compare .yes::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

/* feature cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card .ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 22px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.shots figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

/* security list */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.checks li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 16px 18px;
}

.checks strong {
  display: block;
}

.checks strong::before {
  content: "✓ ";
  color: var(--ok);
}

.checks span {
  color: var(--muted);
  font-size: 15px;
}

/* steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* faq */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* contact */
.cta {
  text-align: center;
  background: linear-gradient(135deg, var(--brand), #8a5bd6);
  color: #fff;
  border-radius: 20px;
  padding: 48px 24px;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 32px);
}

.cta p {
  margin: 0 0 22px;
  opacity: 0.9;
}

.cta .btn {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  margin-inline-start: auto;
}

/* legal pages */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.doc h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 6px;
}

.doc h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.doc .meta {
  color: var(--muted);
  font-size: 14px;
}

.doc .switch {
  margin: 12px 0 0;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 56px 0 40px;
}

.doc li {
  margin-bottom: 6px;
}

/* ---- narrow screens ---- */
@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .site-header .lang {
    margin-inline-start: auto;
  }

  .compare td:first-child {
    width: auto;
  }

  section {
    padding: 48px 0;
  }
}

.section-sub.after {
  margin: 28px auto 0;
}
