/* Sub Vault landing page — mobile first, RTL-aware (logical properties), light/dark. */
:root {
  --violet-1: #302A98;
  --violet-2: #6038BA;
  --violet-3: #8B45D9;
  --accent: #6366F1;
  --bg: #F8F7FC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #5B6472;
  --border: #E5E7EB;
  --success: #10B981;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #818CF8;
    --bg: #0A0A0A;
    --surface: #161616;
    --text: #F5F5F5;
    --muted: #A3A3A3;
    --border: #262626;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(139, 69, 217, 0.55), transparent 60%),
    linear-gradient(160deg, var(--violet-2) 0%, var(--violet-1) 70%);
  padding: max(16px, env(safe-area-inset-top)) 16px 0;
  overflow: hidden;
}
.topbar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: #fff;
}
.brand img { height: 30px; width: auto; }
.lang-switch {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.lang-switch:hover { background: rgba(255, 255, 255, 0.12); }

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  padding-top: 32px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 18px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; }
.hero h1 { font-size: clamp(32px, 8.6vw, 56px); font-weight: 800; }
.lead {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}
.badge { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.badge img { height: 52px; width: auto; }
.badge-soon img { opacity: 0.45; }
.badge-soon small { font-size: 12px; opacity: 0.85; }
/* Put the visitor's own store first */
[data-platform="ios"] .badge-ios { order: -1; }

.trust {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.trust li, .privacy li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; color: #A7F3D0; flex: none; }

.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone {
  width: min(300px, 74vw);
  margin-bottom: -220px;          /* the hero crops the bottom of the phone */
}

/* Phone frame around screenshots */
.phone {
  position: relative;
  border-radius: 44px;
  padding: 10px;
  background: #0B0B14;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 30px 60px -20px rgba(15, 10, 50, 0.55),
    0 12px 24px -12px rgba(15, 10, 50, 0.4);
}
.phone img { border-radius: 34px; width: 100%; height: auto; }

/* ── Sections ─────────────────────────────────────── */
main { padding: 0 16px; }
section { max-width: 1120px; margin: 0 auto; }
section h2 { font-size: clamp(26px, 6.4vw, 38px); font-weight: 800; text-align: center; }

.features { padding-top: 72px; }
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
  text-align: center;
}
.feature-num, .step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--violet-3), var(--violet-1));
  margin-bottom: 14px;
}
.feature h3 { font-size: 24px; font-weight: 800; }
.feature p { margin: 12px auto 0; max-width: 30em; color: var(--muted); }
.phone-sm { width: min(260px, 66vw); margin: 0 auto; }

.steps { padding-top: 88px; }
.steps ol {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.steps h3 { font-size: 19px; font-weight: 700; }
.steps p { margin-top: 6px; color: var(--muted); }

.privacy {
  margin-top: 88px;
  padding: 40px 22px;
  border-radius: 28px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(139, 69, 217, 0.5), transparent 65%),
    linear-gradient(160deg, var(--violet-2), var(--violet-1));
}
.privacy > img { height: 56px; width: auto; margin: 0 auto 14px; }
.privacy ul {
  list-style: none;
  padding: 0;
  margin: 26px auto 0;
  max-width: 640px;
  display: grid;
  gap: 14px;
  text-align: start;
}
.privacy li { align-items: flex-start; gap: 10px; font-size: 16px; color: rgba(255, 255, 255, 0.92); }
.privacy svg { width: 22px; height: 22px; color: #A7F3D0; flex: none; margin-top: 1px; }

.cta {
  padding: 88px 0 72px;
  text-align: center;
}
.cta-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 20px; box-shadow: 0 16px 32px -14px rgba(48, 42, 152, 0.6); }
.cta p { margin-top: 10px; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 16px max(28px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-bottom: 10px; }
.site-footer a { text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.site-footer a:hover { color: var(--text); background: var(--surface); }

a:focus-visible { outline: 3px solid #A5B4FC; outline-offset: 3px; border-radius: 10px; }

/* ── Wider screens ────────────────────────────────── */
@media (min-width: 900px) {
  .hero { padding-inline: 32px; }
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    text-align: start;
    padding-top: 48px;
  }
  .lead { margin-inline: 0; }
  .hero .badges, .trust { justify-content: flex-start; }
  .hero-phone .phone { width: 320px; margin-bottom: -200px; }
  .features { padding-top: 104px; }
  .feature { grid-template-columns: 1fr 1fr; text-align: start; gap: 64px; margin-top: 88px; }
  .feature p { margin-inline: 0; }
  .feature:nth-of-type(even) .feature-copy { order: 2; }
  .phone-sm { width: 280px; }
  .steps ol { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .privacy { padding: 56px 48px; }
  .privacy ul { grid-template-columns: 1fr 1fr; max-width: none; gap: 18px 32px; }
  main { padding: 0 32px; }
}
