/* Recover Messages website. "Night Vault" palette, IBM Plex Sans Arabic (self-hosted), light + dark, LTR + RTL.
   No inline styles anywhere (strict CSP): motion values come from classes and CSS variables set by site.js. */

@font-face { font-family: "Plex"; src: url("/assets/fonts/plex-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/plex-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/plex-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #F7F7FB; --surface: #FFFFFF; --surface-2: #EFEFF7; --ink: #1B1B2F; --muted: #5B5B73; --line: #E2E2EE;
  --primary: #3F3D9E; --on-primary: #FFFFFF; --primary-soft: #E8E7FA;
  --amber: #F5B53D; --amber-deep: #C98A12; --on-amber: #1B1B2F;
  --deleted: #9A4A06; --deleted-bg: #FDEBD3; --protected: #0F766E; --protected-bg: #D5F5EF;
  --night-ink: #F3F3FA; --night-muted: #C3C2E2;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 27, 47, .06), 0 10px 28px -14px rgba(27, 27, 47, .22);
  --wrap: 1120px; --gutter: clamp(20px, 4vw, 32px);
  --font: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", sans-serif;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --dir: 1;
  color-scheme: light dark;
}
[dir="rtl"] { --dir: -1; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121C; --surface: #1C1C2A; --surface-2: #24243A; --ink: #E8E8F0; --muted: #A3A3B8; --line: #2E2E46;
    --primary: #AFAEFF; --on-primary: #1A1966; --primary-soft: #2A2960;
    --deleted: #FBBF24; --deleted-bg: #3A2A0A; --protected: #5EEAD4; --protected-bg: #0B2E2A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -14px rgba(0, 0, 0, .7);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
section { padding-block: clamp(56px, 8vw, 104px); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.wrap--doc { max-width: 860px; }
.muted { color: var(--muted); }
.i { width: 24px; height: 24px; flex: none; }
.i--sm { width: 18px; height: 18px; }
.i--xs { width: 13px; height: 13px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.rot-down { transform: rotate(90deg); }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.top__in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; white-space: nowrap; }
.brand img { border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(46, 44, 122, .5); }
.top__nav { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; transition: background-color .15s; }
.top__nav a:hover { background: var(--surface-2); }
.top__nav a[aria-current="page"] { color: var(--primary); }
.top__nav .lang { border: 1px solid var(--line); margin-inline-start: 6px; }
@media (max-width: 640px) { .hide-sm { display: none !important; } .brand { font-size: 16px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font: 600 16px/1.1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s; }
.btn--amber { background: var(--amber); color: var(--on-amber); box-shadow: 0 4px 0 var(--amber-deep), 0 14px 30px -12px rgba(245, 181, 61, .6); }
.btn--amber:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--amber-deep), 0 18px 34px -12px rgba(245, 181, 61, .65); }
.btn--amber:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--amber-deep), 0 6px 16px -8px rgba(245, 181, 61, .5); }
.btn--ghost { color: var(--night-ink); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 0 color-mix(in srgb, var(--primary) 62%, #000); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--primary) 62%, #000); }
.btn--ghost-ink { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; margin: 0; border-radius: 14px; font-weight: 600; color: var(--amber); border: 1.5px dashed rgba(245, 181, 61, .65); background: rgba(245, 181, 61, .08); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--night-ink); padding-block: clamp(40px, 7vw, 96px) clamp(88px, 10vw, 136px);
  background: radial-gradient(120% 90% at 78% 18%, #2E2C7A 0%, #1A1960 40%, #12121C 100%); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb--a { width: 520px; height: 520px; background: #3F3D9E; opacity: .55; inset-inline-end: -140px; top: -160px; }
.orb--b { width: 440px; height: 440px; background: #F5B53D; opacity: .13; inset-inline-start: -180px; bottom: -240px; }
.grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 70% 40%, #000 0%, transparent 75%); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--night-muted); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .i { color: var(--amber); }
.kinetic { font-size: clamp(42px, 6.4vw, 78px); font-weight: 700; line-height: 1.04; letter-spacing: -.028em; margin: 0 0 22px; perspective: 600px; }
:lang(ar) .kinetic { line-height: 1.3; letter-spacing: 0; font-size: clamp(42px, 6.2vw, 76px); }
.kinetic .w { --d: 0s; display: inline-block; opacity: 0; transform: translateY(.45em) rotateX(-60deg); transform-origin: 50% 100%; animation: wordIn .85s var(--ease) var(--d) forwards; }
.kinetic .w:nth-child(2) { --d: .1s; } .kinetic .w:nth-child(3) { --d: .2s; } .kinetic .w:nth-child(4) { --d: .3s; } .kinetic .w:nth-child(5) { --d: .4s; } .kinetic .w:nth-child(6) { --d: .5s; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.kinetic .w--accent { position: relative; color: var(--amber); animation: wordIn .85s var(--ease) var(--d) forwards, revive 1.9s ease-in-out calc(var(--d) + .85s) both; }
.w--accent::after { content: ""; position: absolute; inset-inline: -.04em; top: 54%; height: .085em; border-radius: .05em; background: var(--amber); transform: scaleX(0); transform-origin: left center; animation: strike 1.9s cubic-bezier(.65, 0, .35, 1) calc(var(--d) + .85s) forwards; }
[dir="rtl"] .w--accent::after { transform-origin: right center; }
@keyframes strike { 0% { transform: scaleX(0); } 32% { transform: scaleX(1); } 62% { transform: scaleX(1); } 100% { transform: scaleX(1) translateY(.52em); } }
@keyframes revive { 0% { color: var(--amber); } 30%, 62% { color: rgba(243, 243, 250, .42); } 100% { color: var(--amber); } }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--night-muted); max-width: 33em; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--night-ink); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; padding: 7px 14px; }
.chips .i { color: #5EEAD4; }

/* 3D phone */
.hero__art { display: flex; justify-content: center; animation: rise 1.1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(34px) scale(.97); } }
.stage { --px: 0; --py: 0; --sy: 0; position: relative; width: min(100%, 440px); aspect-ratio: 440 / 600; perspective: 1600px; perspective-origin: 50% 40%; }
@media (max-width: 900px) { .stage { width: min(100%, 380px); } }
.stage__glow { position: absolute; inset: 10% 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(175, 174, 255, .42), rgba(63, 61, 158, 0)); filter: blur(24px); }
.phone { position: absolute; left: 50%; top: 50%; width: 60%; aspect-ratio: 9 / 19; margin-left: -30%; translate: 0 -50%; transform-style: preserve-3d;
  transform: rotateY(calc(var(--dir) * (-17deg + var(--px) * 9deg))) rotateX(calc(7deg - var(--py) * 6deg + var(--sy) * 12deg)) rotateZ(calc(var(--dir) * 2.5deg));
  transition: transform .5s var(--ease); }
.phone__edge { position: absolute; inset: 0; border-radius: 15% / 7.2%; background: linear-gradient(145deg, #4a4a66, #0c0c14 60%); transform: translateZ(-16px); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .85); }
.phone__body { position: absolute; inset: 0; border-radius: 15% / 7.2%; padding: 3.6%; background: linear-gradient(160deg, #34344a 0%, #0d0d16 55%, #23233a 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 5px #07070c, 0 30px 60px -24px rgba(8, 8, 20, .85); }
.phone__body::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%); }
.phone__screen { position: relative; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: #12121C; color: #E8E8F0; display: flex; flex-direction: column; container-type: inline-size; line-height: 1.35; }
.m-status { display: flex; justify-content: space-between; align-items: center; padding: 4cqw 8cqw 1.5cqw; font-size: 4cqw; font-weight: 600; color: #CFCFE0; }
.m-status__dots { display: flex; gap: 1.6cqw; }
.m-status__dots i { width: 3cqw; height: 3cqw; border-radius: 50%; background: #CFCFE0; opacity: .8; }
.m-bar { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 5cqw; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.m-bar__back { width: 6.5cqw; height: 6.5cqw; color: #CFCFE0; }
[dir="rtl"] .m-bar__back { transform: scaleX(-1); }
.m-avatar { width: 11cqw; height: 11cqw; border-radius: 50%; display: grid; place-items: center; background: #2A2960; color: #AFAEFF; font-weight: 700; font-size: 5cqw; flex: none; }
.m-who { display: flex; flex-direction: column; min-width: 0; }
.m-who b { font-size: 5.2cqw; font-weight: 600; }
.m-who small { font-size: 3.6cqw; color: #FBBF24; }
.m-chat { flex: 1; display: flex; flex-direction: column; gap: 3.2cqw; padding: 5cqw; overflow: hidden; }
.m-b { --d: .7s; align-self: flex-start; max-width: 84%; background: #1C1C2A; border: 1px solid rgba(255, 255, 255, .07); border-radius: 4.6cqw; padding: 2.6cqw 3.8cqw; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); animation: pop .55s var(--ease) var(--d) both; }
.m-b--1 { --d: .9s; } .m-b--2 { --d: 1.1s; } .m-b--3 { --d: 1.3s; }
.m-b p { margin: 0; font-size: 4.6cqw; }
.m-meta { display: flex; align-items: center; gap: 1.3cqw; font-size: 3.4cqw; color: #A3A3B8; margin-top: 1cqw; }
.m-b--del { animation: pop .55s var(--ease) var(--d) both, delMark 1s ease calc(var(--d) + 1.2s) both; }
.m-b--del .m-meta { color: #FBBF24; animation: fadeIn .5s ease calc(var(--d) + 1.6s) both; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.94); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes delMark {
  from { background: #1C1C2A; border-color: rgba(255, 255, 255, .07); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
  to { background: #3A2A0A; border-color: rgba(251, 191, 36, .6); box-shadow: 0 0 0 1px rgba(251, 191, 36, .25), 0 8px 26px -6px rgba(251, 191, 36, .5); }
}
.m-foot { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; font-size: 3.6cqw; color: #5EEAD4; background: #0B2E2A; padding: 3.2cqw; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; border-radius: 16px; background: rgba(28, 28, 42, .74); border: 1px solid rgba(255, 255, 255, .15); color: #F3F3FA;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 44px -18px rgba(0, 0, 0, .75); transition: translate .5s var(--ease); }
.float p { margin: 0; }
.float--notif { inset-inline-start: -5%; top: -3%; width: min(78%, 300px); padding: 12px 14px; align-items: flex-start; translate: calc(var(--px) * -16px) calc(var(--py) * -12px); animation: dropIn .8s var(--ease) 2.6s both; }
.float--notif img { border-radius: 9px; flex: none; }
.float__app { font-size: 12px; color: #B9B8DA; }
.float__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.float__sub { font-size: 13px; color: #FBBF24; }
.float--on { inset-inline-end: -3%; top: 47%; padding: 9px 14px; font-size: 14px; font-weight: 600; color: #5EEAD4; background: rgba(11, 46, 42, .82); border-color: rgba(94, 234, 212, .3); translate: calc(var(--px) * 18px) calc(var(--py) * 14px); animation: slideIn .8s var(--ease) 1.8s both; }
.float--lock { inset-inline-start: 2%; bottom: 9%; padding: 9px 14px; font-size: 14px; font-weight: 600; translate: calc(var(--px) * -10px) calc(var(--py) * 20px); animation: slideIn .8s var(--ease) 2.1s both; }
.float--lock .i { color: var(--amber); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px) scale(.96); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(calc(var(--dir) * 24px)); } }
@media (max-width: 480px) { .float--notif { inset-inline-start: -2%; } .float { font-size: 13px; } }

/* ---------- promise ---------- */
.promise { padding-block: 0; margin-top: clamp(-64px, -6vw, -40px); position: relative; z-index: 2; }
.promise__card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--amber); border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.promise__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--deleted-bg); color: var(--deleted); flex: none; }
.promise h2 { font-size: clamp(19px, 2vw, 22px); color: var(--muted); font-weight: 600; margin-bottom: .3em; }
.promise__body { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; color: var(--ink); margin-bottom: .35em; line-height: 1.35; }
.promise__note { color: var(--muted); margin: 0; }

/* ---------- sections ---------- */
.sec-title { font-size: clamp(30px, 3.8vw, 44px); text-align: center; margin-bottom: clamp(28px, 4vw, 52px); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; inset-inline: 12%; border-top: 2px dashed var(--line); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 20px; margin-bottom: 16px; box-shadow: 0 4px 0 color-mix(in srgb, var(--primary) 60%, #000); }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin: 0; }
.feat-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: translate .3s var(--ease), box-shadow .3s var(--ease), opacity .7s var(--ease), transform .7s var(--ease); }
@media (hover: hover) { .feat:hover { translate: 0 -4px; box-shadow: var(--shadow); } }
.feat__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--primary); background: var(--primary-soft); margin-bottom: 14px;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--primary) 20%, transparent), 0 8px 16px -10px color-mix(in srgb, var(--primary) 70%, transparent); }
.feat:first-child .feat__icon { color: var(--deleted); background: var(--deleted-bg); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--deleted) 22%, transparent); }
.feat:nth-child(6) .feat__icon { color: var(--protected); background: var(--protected-bg); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--protected) 22%, transparent); }
.feat h3 { font-size: 18px; margin-bottom: .35em; }
.feat p { color: var(--muted); margin: 0; font-size: 16px; }

/* privacy band */
.vault { color: var(--night-ink); background: radial-gradient(90% 130% at 12% 50%, #2E2C7A 0%, #1A1960 45%, #12121C 100%); overflow: hidden; }
.vault__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .vault__in { grid-template-columns: 1fr; } .vault__art { max-width: 240px; } }
.vault__art { position: relative; aspect-ratio: 1; max-width: 320px; width: 100%; margin-inline: auto; display: grid; place-items: center; perspective: 900px; transform-style: preserve-3d; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(175, 174, 255, .4); transform: rotateX(66deg); animation: spin 18s linear infinite; }
.ring--2 { inset: 13%; border-color: rgba(245, 181, 61, .5); border-style: dashed; animation-duration: 13s; animation-direction: reverse; }
.ring--3 { inset: 26%; border-color: rgba(94, 234, 212, .4); animation-duration: 9s; }
@keyframes spin { to { transform: rotateX(66deg) rotateZ(360deg); } }
.vault__lock { position: relative; display: grid; place-items: center; width: 38%; aspect-ratio: 1; border-radius: 28%; color: var(--amber); background: linear-gradient(160deg, #4B49B5, #1A1960);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -6px 0 rgba(0, 0, 0, .25), 0 24px 50px -12px rgba(63, 61, 158, .9), 0 0 70px -10px rgba(245, 181, 61, .45); animation: bob 6s ease-in-out infinite; }
.vault__lock .i { width: 46%; height: 46%; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.vault h2 { font-size: clamp(28px, 3.4vw, 42px); }
.checks { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--night-muted); font-size: 17px; }
.checks .i { color: #5EEAD4; margin-top: 5px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 600; text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }

/* supported apps */
.apps { padding-block: clamp(56px, 7vw, 88px) clamp(24px, 3vw, 40px); }
.apps__in { text-align: center; }
.apps__in .sec-title { margin-bottom: 18px; }
.apps__text p { font-size: 18px; }
.apps__text .apps__note { font-size: 14.5px; color: var(--muted); max-width: 40em; margin-inline: auto; }

/* gallery */
.shots { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 44px); perspective: 1400px; }
.shot { flex: 0 1 270px; transform-style: preserve-3d; }
.shot figure { margin: 0; transform-style: preserve-3d; }
.shot__frame { border-radius: 30px; padding: 8px; background: linear-gradient(160deg, #34344a, #0d0d16); box-shadow: 0 34px 60px -30px rgba(27, 27, 47, .6); transition: transform .7s var(--ease); }
.shot__frame img { border-radius: 23px; width: 100%; background: var(--surface-2); }
.shot:nth-child(1) .shot__frame { transform: rotateY(calc(var(--dir) * 16deg)) translateZ(-40px); }
.shot:nth-child(3) .shot__frame { transform: rotateY(calc(var(--dir) * -16deg)) translateZ(-40px); }
.shot:nth-child(2) figure { transform: translateY(-20px); }
@media (hover: hover) { .shot:hover .shot__frame { transform: none; } }
.shot figcaption { text-align: center; color: var(--muted); font-weight: 600; margin-top: 16px; font-size: 15.5px; }
@media (max-width: 760px) {
  .shots { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 14px; margin-inline: calc(var(--gutter) * -1); perspective: none; }
  .shot { flex: 0 0 70%; scroll-snap-align: center; }
  .shot .shot__frame, .shot:nth-child(2) figure { transform: none; }
}

/* FAQ */
.faq__list { display: grid; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: 17px; min-height: 58px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--surface-2); }
.qa__chev { color: var(--muted); transform: rotate(90deg); transition: transform .2s var(--ease); }
.qa[open] .qa__chev { transform: rotate(-90deg); }
.qa__a { padding: 2px 20px 18px; color: var(--muted); }
.qa__a p:last-child { margin: 0; }

/* CTA */
.cta__card { position: relative; overflow: hidden; text-align: center; color: var(--night-ink); border-radius: 28px; padding: clamp(36px, 6vw, 68px) 24px; background: radial-gradient(120% 140% at 50% 0%, #3F3D9E 0%, #1A1960 50%, #12121C 100%); box-shadow: 0 40px 80px -44px rgba(26, 25, 96, .9); }
.cta__icon { margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7); }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); }
.cta p { color: var(--night-muted); max-width: 32em; margin-inline: auto; margin-bottom: 26px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 28px; background: var(--surface); }
.foot__in { display: grid; grid-template-columns: 1.1fr 2fr; gap: 20px 48px; align-items: start; }
@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }
.brand--foot { font-size: 16px; }
.foot__brand p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; max-width: 30em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 2px 22px; justify-content: flex-end; }
@media (max-width: 760px) { .foot__nav { justify-content: flex-start; } }
.foot__nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; min-height: 44px; display: inline-flex; align-items: center; }
.foot__nav a:hover { color: var(--primary); text-decoration: underline; }
.foot__copy { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }
.foot__copy span { display: inline-block; }

/* ---------- documents (privacy, terms, delete data, help, licenses) ---------- */
.doc { padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.doc section { padding-block: 0; }
.doc__grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-areas: "head head" "toc body"; gap: 20px 56px; max-width: 1080px; }
.doc__head { grid-area: head; max-width: 760px; margin-bottom: 8px; }
.toc { grid-area: toc; position: sticky; top: 88px; align-self: start; }
.doc__body { grid-area: body; max-width: 720px; }
@media (max-width: 900px) {
  .doc__grid { grid-template-columns: 1fr; grid-template-areas: "head" "toc" "body"; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
}
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: .3em; }
.doc__updated { color: var(--muted); font-size: 15px; }
.doc__intro { font-size: clamp(18px, 1.9vw, 20px); }
.doc__note { font-size: 14.5px; color: var(--muted); background: var(--surface-2); padding: 10px 14px; border-radius: 12px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
:lang(ar) .toc h2 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; margin-inline-start: -2px; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--primary); border-color: var(--primary); }
.doc__sec { margin-bottom: 34px; }
.doc__sec h2 { font-size: clamp(22px, 2.4vw, 26px); margin-bottom: .55em; }
.doc__sec ul { padding-inline-start: 1.25em; margin: 0 0 1em; }
.doc__sec li { margin-bottom: .55em; }
.doc__sec li::marker { color: var(--primary); }
.help-sec { margin-top: clamp(36px, 5vw, 56px); }
.help-sec > h2 { font-size: clamp(24px, 2.8vw, 30px); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: c; }
.checklist li { counter-increment: c; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; padding-inline-start: 70px; }
.checklist li::before { content: counter(c); position: absolute; inset-inline-start: 20px; top: 18px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.checklist h3 { font-size: 18px; margin-bottom: .3em; }
.checklist p { margin: 0; color: var(--muted); }
.contact-card { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.contact-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); flex: none; }
.contact-card h2 { font-size: 22px; }
.contact-card p { margin: 0; color: var(--muted); }
.components { list-style: none; padding: 0; margin: 8px 0 44px; display: grid; gap: 12px; }
.component { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.component h2 { font-size: 18px; margin-bottom: .2em; }
.component p { margin: 0 0 .3em; }
.component p:last-child { margin: 0; }
.sec-title--doc { text-align: start; font-size: clamp(24px, 2.6vw, 28px); margin: 0 0 16px; }
.qa--license { margin-bottom: 10px; }
.qa--license pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); color: var(--ink); padding: 16px; border-radius: 12px; max-height: 480px; overflow: auto; margin: 0; }

/* 404 */
.nf { padding-block: clamp(56px, 10vw, 120px); text-align: center; }
.nf__in img { margin: 0 auto 14px; border-radius: 22px; }
.nf__code { font-size: 64px; font-weight: 700; color: var(--primary); margin: 0; line-height: 1.1; }
.nf__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- scroll reveal (only when site.js runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .feat.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease), translate .3s var(--ease), box-shadow .3s var(--ease); }
.js .steps .reveal:nth-child(2), .js .feat-grid .reveal:nth-child(3n+2), .js .shots .reveal:nth-child(2) { transition-delay: .08s; }
.js .steps .reveal:nth-child(3), .js .feat-grid .reveal:nth-child(3n+3), .js .shots .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- motion and print preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .phone { transform: rotateY(calc(var(--dir) * -12deg)) rotateX(5deg); }
}
@media print {
  .top, .foot, .toc, .skip, .hero__art { display: none; }
  body { background: #fff; color: #000; }
  .doc__grid { display: block; }
}
