/* Evlenso website. Brand: teal #0E7C66, charge ring + bolt. Logical properties keep RTL and LTR in one sheet. */
@font-face { font-family: 'Plex'; font-weight: 400; font-display: swap; src: url('/assets/fonts/IBMPlexSansArabic_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Plex'; font-weight: 600; font-display: swap; src: url('/assets/fonts/IBMPlexSansArabic_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Plex'; font-weight: 700; font-display: swap; src: url('/assets/fonts/IBMPlexSansArabic_700Bold.ttf') format('truetype'); }

:root {
  --teal: #0E7C66;
  --teal-deep: #0A5747;
  --teal-ink: #07382E;
  --mint: #E3F4EE;
  --mint-2: #C9F5E8;
  --bg: #F3F7F5;
  --card: #FFFFFF;
  --ink: #10201B;
  --muted: #4A5D56;
  --line: #DCE7E3;
  --accent: #F2B84B;
  --shadow: 0 1px 2px rgb(16 32 27 / .05), 0 12px 32px -12px rgb(16 32 27 / .18);
  --radius: 22px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(64px, 10vw, 112px);
  --font: 'Plex', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0C1613; --card: #13221D; --ink: #EAF3F0; --muted: #9DB3AC; --line: #213630; --mint: #12312A; --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.7 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #5EC7AC; } }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.menu { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.menu a { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 12px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { background: var(--mint); }
.menu .lang { border: 1px solid var(--line); font-weight: 600; }
.burger { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .menu { position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; display: none; }
  .menu.open { display: flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 520px at 85% -10%, #1AA487 0%, transparent 60%), linear-gradient(160deg, var(--teal-deep), var(--teal) 70%); }
.hero::before { content: ''; position: absolute; inset-inline-end: -180px; top: 50%; width: 760px; height: 760px; translate: 0 -50%; border-radius: 50%; border: 64px solid rgb(255 255 255 / .07); }
[dir='rtl'] .hero::before { inset-inline-end: auto; inset-inline-start: -180px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 72px); padding-block: clamp(48px, 8vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); margin-bottom: 20px; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: #E6F6F1; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 16px; font: 600 17px var(--font); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn-light { background: #fff; color: var(--teal-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(0 0 0 / .45); }
.btn-ghost { color: #fff; border: 1.5px solid rgb(255 255 255 / .5); }
.btn-ghost:hover { background: rgb(255 255 255 / .12); }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); }
.hero .note { margin-top: 20px; font-size: 15px; color: #CDEBE3; }
.phone { justify-self: center; width: min(300px, 74vw); padding: 11px; border-radius: 44px; background: #0B1210; box-shadow: 0 40px 70px -24px rgb(0 0 0 / .55), inset 0 0 0 2px #26332F; rotate: 3deg; }
[dir='rtl'] .phone { rotate: -3deg; }
.phone img { border-radius: 34px; width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { rotate: 0deg !important; }
}

/* Sections */
section { padding-block: var(--section); }
.head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.head p { color: var(--muted); font-size: 19px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.ico { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .ico { color: #5EC7AC; } }
.ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16.5px; }
.steps { counter-reset: s; }
.steps .card { position: relative; }
.steps .card::after { counter-increment: s; content: counter(s); position: absolute; inset-block-start: 22px; inset-inline-end: 24px; font-size: 44px; font-weight: 700; color: var(--mint); line-height: 1; }
@media (prefers-color-scheme: dark) { .steps .card::after { color: #1B3B33; } }

/* Privacy band */
.band { background: var(--teal-ink); color: #EAF6F2; }
.band .head p { color: #B7D6CD; }
.band .card { background: #0D4A3D; border-color: #17604F; box-shadow: none; }
.band .card p { color: #BFE0D6; }
.band .ico { background: #17604F; color: #C9F5E8; }
.band .grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .band .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .band .grid { grid-template-columns: 1fr; } }
.band a { color: #C9F5E8; font-weight: 600; }
.band .more { margin-top: 28px; }

/* Download */
.dl { text-align: center; }
.dl .head { margin-inline: auto; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 22px; }
.store { display: inline-flex; align-items: center; gap: 14px; min-width: 230px; padding: 14px 22px; border-radius: 18px; background: var(--card); border: 1.5px dashed var(--line); color: var(--ink); text-align: start; }
.store svg { width: 34px; height: 34px; color: var(--teal); flex: none; }
.store small { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.store strong { display: block; font-size: 19px; line-height: 1.3; }
.soon { margin-inline-start: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #3B2A00; }
.dl .web { color: var(--muted); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--teal); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
footer h4 { margin: 0 0 12px; font-size: 15px; color: var(--muted); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.fine { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { color: var(--muted); max-width: 22em; margin-top: 12px; }

/* Legal pages */
.doc { padding-block: clamp(40px, 7vw, 72px) var(--section); }
.doc .wrap { width: min(760px, 100% - 2 * var(--gutter)); }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.doc .lead { color: var(--muted); font-size: 19px; margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 24px; margin: 12px 0 0; display: grid; gap: 8px; }
.doc li::marker { color: var(--teal); }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 28px; font-weight: 600; text-decoration: none; min-height: 44px; }

/* Motion: gentle, and off when the visitor asks for less */
.js .rv { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.js .rv.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; translate: 0 0; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* Download cards */
.dlgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; text-align: start; align-items: stretch; }
.dlcard { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.dlcard h3 { font-size: 22px; line-height: 1.3; }
.dlcard p { color: var(--muted); }
.dlcard .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 12px; border-radius: 999px; background: transparent; border: 1px solid var(--line); color: var(--ink); }
.dlcard .btn { align-self: flex-start; }
.dlcard ol { margin: 4px 0 0; padding-inline-start: 22px; color: var(--ink); display: grid; gap: 6px; font-size: 15px; }
.dlcard small { color: var(--muted); margin-top: auto; padding-top: 6px; }
.dlcard .qr { width: 176px; height: 176px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.dlcard .qr svg { width: 100%; height: 100%; display: block; }
.dlcard .qrcap { font-size: 14px; }
