@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/tajawal-arabic-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ground: #F6F4FB;
  --card: #FFFFFF;
  --ink: #17131F;
  --text: #3D3749;
  --muted: #5E576D;
  --soft-fill: #F3F0F8;
  --stroke: #E4DFEE;
  --purple: #8740E0;
  --purple-ink: #5B2BB5;
  --blue: #2196F3;
  --gradient: linear-gradient(135deg, var(--purple), var(--blue));
  --shadow: 0 18px 40px rgba(23, 19, 31, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Rubik", system-ui, sans-serif;
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: "Tajawal", "Rubik", system-ui, sans-serif; }
/* Negative tracking breaks the joined letters of Arabic */
[dir="rtl"] * { letter-spacing: 0 !important; }
img { display: block; max-width: 100%; }
a { color: var(--purple-ink); }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav > a:not(.button-dark) { text-decoration: none; font-size: 15px; color: #4A4458; }
.nav > a:not(.button-dark):hover { color: var(--ink); }
.button-dark, .button-light {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.button-dark { background: var(--ink); color: #FFFFFF; }
.button-dark:hover { color: #FFFFFF; background: #2E2838; }
.button-light { background: #FFFFFF; color: var(--ink); height: 58px; padding: 0 28px; border-radius: 16px; font-size: 18px; align-self: flex-start; }

.lang-pill { position: relative; display: flex; align-items: center; height: 44px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--card); color: #4A4458; }
.lang-pill:hover { border-color: #CFC6E0; }
.lang-pill:focus-within { outline: 2px solid var(--purple); outline-offset: 2px; }
.lang-globe { position: absolute; inset-inline-start: 14px; pointer-events: none; }
.lang-chevron { position: absolute; inset-inline-end: 12px; pointer-events: none; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: transparent; border: none; outline: none; cursor: pointer;
  height: 42px; padding-inline: 38px 32px; border-radius: 999px;
}

/* Hero */
.hero { position: relative; padding-top: 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.sparkle { position: absolute; }
.sparkle-1 { left: 12%; top: 90px; }
.sparkle-2 { right: 14%; top: 170px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--purple-ink); background: #EFE8FC; padding: 8px 16px; border-radius: 999px; }
.hero-title { font-size: 92px; line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 620px; }
.hero .lead { font-size: 21px; max-width: 580px; }
.app-store { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #FFFFFF; text-decoration: none; padding: 0 26px; height: 60px; border-radius: 16px; margin-top: 6px; }
.app-store:hover { color: #FFFFFF; background: #2E2838; }
.app-store span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.app-store small { font-size: 12px; }
.app-store strong { font-size: 20px; font-weight: 600; }

/* Phones */
.showcase { position: relative; margin-top: 64px; background: var(--gradient); border-radius: 40px; padding: 72px 24px 0; overflow: hidden; }
.ring { position: absolute; pointer-events: none; }
.ring-1 { left: -140px; top: -160px; }
.ring-2 { right: -120px; bottom: -120px; }
.ring-3 { right: -60px; top: -60px; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 32px; }
.badge { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #FFFFFF; border-radius: 18px; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.badge-locked { left: 6%; top: 40px; }
.badge-backed { right: 5%; top: 120px; }
.badge-hidden { left: 7%; top: 400px; }
.badge-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.purple { background: #EFE8FC; color: var(--purple); }
.blue { background: #E3F1FD; color: #1976D2; }
.pink { background: #FDEBF3; color: #C2185B; }
.green { background: #E6F6EC; color: #2E7D4F; }

.phone { position: relative; z-index: 1; background: #FFFFFF; border: 8px solid var(--ink); border-bottom: none; border-radius: 44px 44px 0 0; display: flex; flex-direction: column; }
.phone-main { width: 300px; height: 590px; border-width: 9px; border-radius: 50px 50px 0 0; padding: 56px 20px 0; gap: 16px; }
.phone-side { width: 250px; height: 500px; }
.phone-title { font-size: 28px; font-weight: 700; }
.phone-title.small { font-size: 22px; padding-inline-start: 4px; }
.phone-search { height: 40px; border-radius: 12px; background: var(--soft-fill); display: flex; align-items: center; padding: 0 14px; gap: 8px; color: #8A8398; font-size: 14px; }
.albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.album { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.album img, .album-locked { width: 100%; height: 104px; border-radius: 18px; object-fit: cover; }
.album-locked { background: #EFE8FC; color: var(--purple); display: flex; align-items: center; justify-content: center; }
.phone-lock { padding: 60px 22px 0; align-items: center; gap: 20px; }
.lock-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; filter: blur(6px); }
.lock-title { font-size: 18px; font-weight: 600; text-align: center; }
.dots { display: flex; gap: 14px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CFC6E0; }
.dots i.on { background: var(--purple); border-color: var(--purple); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 6px; }
.keypad i { font-style: normal; height: 50px; border-radius: 50%; background: var(--soft-fill); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; }
.phone-trips { padding: 56px 14px 0; gap: 14px; }
.trips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.trips img { width: 100%; height: 70px; border-radius: 6px; object-fit: cover; }

/* Sections */
.section { padding-top: 120px; display: flex; flex-direction: column; gap: 40px; }
.section.last { padding-bottom: 96px; }
.section.narrow { max-width: 820px; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.section-title { font-size: 52px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.card { background: var(--card); border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 24px; font-weight: 700; }
.card p { font-size: 16px; line-height: 1.5; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature { border-radius: 24px; padding: 28px; gap: 14px; }
.feature h3 { font-size: 19px; font-weight: 600; }
.feature p { font-size: 15px; }
.tile { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 20px; }
.split .section-title { font-size: 48px; }
.photo-card { position: relative; }
.photo-card > img { width: 100%; height: 480px; object-fit: cover; border-radius: 32px; }
.progress-card { position: absolute; inset-inline-end: -16px; bottom: 32px; width: 240px; background: #FFFFFF; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.progress-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.progress { height: 8px; border-radius: 999px; background: #EEEAF5; }
.progress span { display: block; width: 72%; height: 8px; border-radius: 999px; background: var(--gradient); }
.thumbs { display: flex; gap: 6px; }
.thumbs img, .thumbs span { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.thumbs span { background: var(--soft-fill); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #FFFFFF; font-size: 15px; font-weight: 500; }
.chips svg { color: #2E7D4F; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento .wide { grid-column: span 2; }
.bento .card { min-height: 300px; }
.card.dark { background: var(--ink); color: #FFFFFF; position: relative; overflow: hidden; min-height: 340px; }
.card.dark h3.big { font-size: 28px; position: relative; }
.reveal { margin-top: auto; display: flex; flex-direction: column; gap: 14px; max-width: 480px; position: relative; }
.code-field { height: 52px; border-radius: 14px; background: #2A2436; display: flex; align-items: center; padding: 0 18px; gap: 10px; font-size: 22px; letter-spacing: 0.3em; color: #FFFFFF; }
.code-field svg { color: #A59DB5; }
.reveal-photos { display: flex; gap: 12px; }
.reveal-photos img { flex: 1; min-width: 0; height: 88px; border-radius: 14px; object-fit: cover; }
.language-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.language-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--soft-fill); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.language-links a:hover { background: #E7E1F2; }
.language-links a[aria-current="page"] { background: var(--ink); color: #FFFFFF; }

/* Pricing */
.pricing { align-items: center; }
.period { display: inline-flex; background: #FFFFFF; border-radius: 999px; padding: 6px; gap: 4px; }
.period button { border: none; cursor: pointer; font: inherit; font-size: 16px; font-weight: 600; height: 44px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; background: transparent; color: #4A4458; }
.period button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.save { font-size: 13px; font-weight: 600; color: #2E7D4F; background: #E6F6EC; padding: 3px 8px; border-radius: 999px; margin-inline-start: 8px; }
.plans { width: 100%; max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 36px; gap: 20px; }
.plan h3 { font-size: 20px; font-weight: 600; }
.plan-head { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.plan-head.row { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-head.row > div { display: flex; flex-direction: column; gap: 6px; }
.price { display: block; font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price small { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.plan-premium { background: var(--gradient); color: #FFFFFF; box-shadow: 0 30px 70px rgba(135, 64, 224, 0.35); }
.plan-premium .price { font-size: 56px; margin-bottom: 6px; }
.soft { font-size: 15px; color: #EDE6FA; }
.popular { font-size: 13px; font-weight: 600; color: var(--purple-ink); background: #FFFFFF; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--text); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg { flex: none; color: var(--purple); }
.plan-premium .check-list, .plan-premium .check-list svg { color: #FFFFFF; }
.plan-button { margin-top: auto; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--soft-fill); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.plan-button:hover { background: #E7E1F2; color: var(--ink); }
.plan-button.light { background: #FFFFFF; }
.fine-print { font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; max-width: 660px; }

/* Questions */
.faqs { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--card); border-radius: 20px; padding: 20px 26px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-chevron { flex: none; color: var(--purple-ink); transition: transform 0.2s; }
.faq[open] .faq-chevron { transform: rotate(180deg); }
.faq p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Closing */
.cta { position: relative; border-radius: 40px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; }
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 19, 31, 0) 20%, rgba(23, 19, 31, 0.82) 100%); }
.cta-content { position: relative; z-index: 1; padding: 48px; display: flex; flex-direction: column; gap: 22px; color: #FFFFFF; max-width: 620px; }
.cta-content img { width: 72px; height: 72px; border-radius: 18px; }
.cta-content .section-title { font-size: 56px; }
.cta-content p { font-size: 19px; line-height: 1.5; color: #E8E3F0; }

.site-footer { border-top: 1px solid var(--stroke); padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }

@media (max-width: 1100px) {
  .badge { display: none; }
}
@media (max-width: 900px) {
  .hide-sm, .phone-side, .sparkle { display: none; }
  .nav { gap: 12px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento, .plans, .split { grid-template-columns: minmax(0, 1fr); }
  .bento .wide { grid-column: auto; }
  .hero-title { font-size: 52px; }
  .section { padding-top: 88px; }
  .section-title, .split .section-title, .cta-content .section-title { font-size: 36px; }
  .showcase { margin-top: 48px; padding-top: 48px; }
  .progress-card { inset-inline-end: 12px; }
  .cta-content { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 28px; }
  .phone-main { width: 100%; max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq-chevron { transition: none; }
}
