/* Clarity — الموقع التعريفي (١٨ أكتوبر ٢٠٢٦): أربع صفحات تشترك في هذا الملف وفي site.js */
@view-transition { navigation: auto; }
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #13262d;
  --ink-2: #4f636a;
  --ink-3: #7d8e94;
  --line: #ece6dc;
  --night: #0b2a32;
  --night-2: #0f3a45;
  --teal: #115667;
  --teal-2: #407e91;
  --teal-3: #7fb3c2;
  --teal-tint: #e9f1f3;
  --apricot: #ffa46e;
  --apricot-deep: #f0874a;
  --apricot-tint: #fdeee3;
  --good: #1f8a5b;
  --shadow-sm: 0 1px 2px rgba(19,38,45,.04), 0 6px 18px rgba(19,38,45,.06);
  --shadow-md: 0 2px 6px rgba(19,38,45,.05), 0 30px 50px -28px rgba(19,38,45,.35);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.08), 0 40px 80px -24px rgba(0,0,0,.45);
  --radius: 24px;
  --display: 'Cairo', 'Tajawal', system-ui, sans-serif;
  --text: 'Tajawal', system-ui, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
/* الشاشات العريضة: نكبّر الصفحة كلها بنسبة ثابتة بدل أن يبقى المحتوى عمودًا ضيقًا في الوسط */
@media (min-width: 1680px) { html { zoom: 1.15; } }
@media (min-width: 1920px) { html { zoom: 1.3; } }
@media (min-width: 2300px) { html { zoom: 1.55; } }
@media (min-width: 2800px) { html { zoom: 1.9; } }
@media (min-width: 3400px) { html { zoom: 2.3; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.75 var(--text); }
html[lang="en"] body { line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* الشريط العلوي */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; color: #fff; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; view-transition-name: topbar; }
.top.light { color: var(--ink); background: rgba(250,248,244,.8); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); box-shadow: 0 1px 0 rgba(19,38,45,.06), 0 12px 30px -20px rgba(19,38,45,.3); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem var(--display); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; margin-inline-start: 12px; }
.nav a { position: relative; text-decoration: none; opacity: .78; font-weight: 500; font-size: .98rem; padding: 8px 14px; border-radius: 10px; transition: opacity .2s ease, background-color .2s ease; }
.nav a:hover { opacity: 1; background: rgba(127,179,194,.14); }
.nav a[aria-current="page"] { opacity: 1; font-weight: 700; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--apricot); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang, .menu-btn { min-height: 42px; min-width: 46px; padding: 0 12px; border-radius: 999px; font: 700 .85rem var(--text); cursor: pointer; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.28); transition: border-color .3s ease; }
.top.light .lang, .top.light .menu-btn { border-color: var(--line); background: var(--surface); color: var(--teal); }
.menu-btn { display: none; place-items: center; padding: 0; width: 46px; }
.menu-btn svg { width: 20px; height: 20px; }
.sheet { display: none; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1.02rem var(--text); text-decoration: none; border: 0; cursor: pointer; transition: transform .12s ease-out, background-color .2s ease, box-shadow .25s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
html[dir="ltr"] .btn svg { transform: scaleX(-1); }
html[dir="ltr"] .btn:hover svg { transform: scaleX(-1) translateX(-4px); }
.btn-apricot { background: var(--apricot); color: var(--night); box-shadow: 0 12px 30px -12px rgba(255,164,110,.8); }
.btn-apricot:hover { background: #ffb486; box-shadow: 0 16px 36px -12px rgba(255,164,110,.95); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-ghost { background: var(--surface); color: var(--teal); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--teal-3); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #0d4756; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-login { background: #fff; color: var(--night); }
.top.light .btn-login { background: var(--teal); color: #fff; }

/* الواجهة الداكنة: الرئيسية كبيرة، وبقية الصفحات أقصر */
.hero { position: relative; isolation: isolate; background: radial-gradient(1200px 600px at 85% -10%, #15505e 0, rgba(21,80,94,0) 60%), radial-gradient(800px 500px at 10% 110%, rgba(255,164,110,.22) 0, rgba(255,164,110,0) 60%), var(--night); color: #fff; padding: 150px 0 120px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(127,179,194,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(127,179,194,.09) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 0, transparent 70%); mask-image: radial-gradient(ellipse at 60% 40%, #000 0, transparent 70%); }
.hero-sub { padding: 150px 0 90px; }
.hero-sub .lede { margin-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-weight: 500; font-size: .92rem; color: rgba(255,255,255,.85); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,164,110,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,164,110,0); } }
h1 { font-weight: 900; font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1.15; margin: 26px 0 22px; text-wrap: balance; color: #fff; }
.hero-sub h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
html[lang="en"] h1 { letter-spacing: -0.035em; line-height: 1.02; }
h1 .hl { position: relative; color: var(--apricot); white-space: nowrap; }
h1 .hl::after { content: ""; position: absolute; inset-inline: -4px; bottom: -.08em; height: .12em; border-radius: 99px; background: linear-gradient(90deg, rgba(255,164,110,0), rgba(255,164,110,.55), rgba(255,164,110,0)); transform: scaleX(0); animation: underline 1.2s .5s var(--ease) forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.74); max-width: 32em; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.62); font-size: .95rem; }
.hero-note li { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 18px; height: 18px; color: var(--teal-3); }

/* مقارنة قبل/بعد قابلة للسحب: الصورة الأصلية تحت، والنتيجة فوقها مقصوصة عند --p */
.stage { position: relative; }
.stage::before { content: ""; position: absolute; inset: 8% -10% -8% 6%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,164,110,.45), rgba(255,164,110,0)); filter: blur(30px); }
.cmp { --p: 50%; --bgc: #ffffff; position: relative; z-index: 1; direction: ltr; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: #0e3640; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; }
.hero .cmp { transform: rotate(-2deg); transition: transform .6s var(--ease); }
.hero .stage:hover .cmp, .hero .cmp.touched { transform: rotate(0deg); }
.cmp .layer { position: absolute; inset: 0; }
.cmp .layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: filter .5s ease, opacity .5s ease; }
.cmp .after { clip-path: inset(0 0 0 var(--p)); background: var(--bgc); transition: background .5s ease; }
.cmp .after.checker { background-color: #fff; background-image: linear-gradient(45deg, #eceff1 25%, transparent 25%), linear-gradient(-45deg, #eceff1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eceff1 75%), linear-gradient(-45deg, transparent 75%, #eceff1 75%); background-size: 28px 28px; background-position: 0 0, 0 14px, 14px -14px, -14px 0; }
.cmp .after img.cut { filter: drop-shadow(0 28px 26px rgba(19,38,45,.28)); }
.cmp.no-shadow .after img.cut { filter: none; }
.cmp.no-light .after img.cut { filter: sepia(.35) brightness(.84) contrast(.92) drop-shadow(0 28px 26px rgba(19,38,45,.28)); }
.cmp.no-light.no-shadow .after img.cut { filter: sepia(.35) brightness(.84) contrast(.92); }
.cmp.no-sharp .after img.cut { opacity: 0; }
.cmp .after img.soft { opacity: 0; filter: blur(2.2px); }
.cmp.no-sharp .after img.soft { opacity: 1; }
.cmp.anim .after { transition: clip-path .9s var(--ease), background .5s ease; }
.cmp.anim .bar { transition: left .9s var(--ease); }
.bar { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: rgba(255,255,255,.95); box-shadow: 0 0 16px 2px rgba(255,255,255,.5); pointer-events: none; }
.knob { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); display: grid; place-items: center; color: var(--teal); transition: transform .2s var(--ease); }
.cmp:active .knob { transform: scale(.92); }
.knob svg { width: 22px; height: 22px; }
.zoom input[type=range], .cmp input[type=range] { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; direction: ltr; }
.zoom:focus-within, .cmp:focus-within { outline: 3px solid var(--apricot); outline-offset: 4px; }
.tag { position: absolute; top: 20px; z-index: 3; padding: 7px 15px; border-radius: 999px; font: 700 .85rem var(--text); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; transition: opacity .3s ease; }
.tag-before { left: 20px; background: rgba(11,42,50,.6); color: #fff; }
.tag-after { right: 20px; background: rgba(255,255,255,.9); color: var(--teal); box-shadow: 0 1px 0 rgba(19,38,45,.06); }
.hint { position: absolute; z-index: 3; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: rgba(11,42,50,.62); color: #fff; font-size: .85rem; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; transition: opacity .4s ease; }
.cmp.touched .hint { opacity: 0; }
.scan { position: absolute; z-index: 2; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(255,164,110,0), rgba(255,164,110,.35) 48%, rgba(255,255,255,.7) 50%, rgba(255,164,110,0) 52%); background-size: 300% 100%; }
.cmp.scanning .scan { opacity: 1; animation: sweep 1.1s linear infinite; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
.swap { position: absolute; z-index: 5; bottom: 18px; right: 18px; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(11,42,50,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.swap button { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: #fff; cursor: pointer; overflow: hidden; }
.swap button img { width: 100%; height: 100%; object-fit: contain; }
.swap button[aria-pressed="true"] { border-color: var(--apricot); }

.float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 20px 40px -16px rgba(0,0,0,.45); font-size: .92rem; line-height: 1.4; animation: bob 6s ease-in-out infinite; pointer-events: none; }
.float b { display: block; font: 700 .98rem var(--display); }
.float .fi { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.float .fi svg { width: 20px; height: 20px; }
.float-a { inset-inline-start: -34px; bottom: 22%; }
.float-b { inset-inline-end: -26px; top: 34%; animation-delay: -3s; }
.float-b .fi { background: var(--apricot-tint); color: var(--apricot-deep); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* شريط القدرات */
.marquee-wrap { overflow: hidden; margin-top: -26px; padding: 26px 0 10px; position: relative; z-index: 2; }
.marquee { background: var(--apricot); color: var(--night); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -40px; box-shadow: 0 20px 40px -24px rgba(240,135,74,.9); }
.marquee-track { display: flex; width: max-content; animation: marq 32s linear infinite; }
html[dir="ltr"] .marquee-track { animation-name: marqL; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes marqL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font: 800 1.35rem var(--display); white-space: nowrap; }
.marquee span::after { content: ""; width: 10px; height: 10px; transform: rotate(45deg); background: var(--night); border-radius: 2px; }

section { scroll-margin-top: 86px; }
.sec { padding: 120px 0; }
.sec-tight { padding: 80px 0; }
.sec-head { max-width: 680px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--teal-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--apricot); }
h2 { font-weight: 900; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.25; text-wrap: balance; color: var(--ink); }
html[lang="en"] h2 { letter-spacing: -0.03em; line-height: 1.08; }
.sec-head p { color: var(--ink-2); font-size: 1.15rem; margin: 16px 0 0; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--teal); text-decoration: none; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.more svg { width: 18px; height: 18px; }
html[dir="ltr"] .more svg { transform: scaleX(-1); }

/* بطاقات الصفحات (في الرئيسية) */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.door { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.door h3 { font-size: 1.45rem; font-weight: 800; margin: 18px 0 8px; }
.door p { margin: 0; color: var(--ink-2); }
.door .go { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); }
.door .go svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.door:hover .go svg { transform: translateX(-5px); }
html[dir="ltr"] .door .go svg { transform: scaleX(-1); }
html[dir="ltr"] .door:hover .go svg { transform: scaleX(-1) translateX(-5px); }
.door .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); }
.door .ic svg { width: 26px; height: 26px; }
.door.dark { background: var(--night); color: #fff; }
.door.dark p { color: rgba(255,255,255,.72); }
.door.dark .go { color: var(--apricot); }
.door.dark .ic { background: var(--apricot); color: var(--night); }
.door.warm { background: var(--apricot-tint); }
.door.warm .ic { background: #fff; color: var(--apricot-deep); }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.step { position: relative; padding: 40px 34px 38px; }
.step + .step { border-inline-start: 1px solid var(--line); }
.num { display: block; font: 900 5rem/1 var(--display); color: transparent; -webkit-text-stroke: 2px var(--apricot); margin-bottom: 22px; }
.step h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }

/* الاستوديو التجريبي */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.studio .cmp { aspect-ratio: 4 / 5; max-height: 78vh; margin-inline: auto; width: 100%; box-shadow: var(--shadow-md); background: #e9e4dc; }
.panel { position: sticky; top: 100px; display: grid; gap: 14px; }
.card { padding: 22px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.card .sub { margin: -6px 0 12px; color: var(--ink-3); font-size: .92rem; }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: start; color: var(--ink); transition: border-color .2s ease, background-color .2s ease; }
.pick img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.pick span { font-weight: 700; font-size: .95rem; }
.pick[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-tint); }
.bgs { display: flex; flex-wrap: wrap; gap: 10px; }
.bgs button { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 0; box-shadow: inset 0 0 0 1px rgba(19,38,45,.12); transition: transform .2s var(--ease), box-shadow .2s ease; }
.bgs button:hover { transform: scale(1.08); }
.bgs button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(19,38,45,.12), 0 0 0 3px var(--surface), 0 0 0 5px var(--teal); }
.bg-white { background: #fff; }
.bg-cream { background: #f3ece2; }
.bg-mist { background: linear-gradient(160deg, #eef4f6, #cfe1e6); }
.bg-peach { background: linear-gradient(160deg, #fff4ec, #ffd2b4); }
.bg-night { background: linear-gradient(160deg, #1b4a56, #0b2a32); }
.bg-none { background-color: #fff; background-image: linear-gradient(45deg, #dfe4e6 25%, transparent 25%), linear-gradient(-45deg, #dfe4e6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dfe4e6 75%), linear-gradient(-45deg, transparent 75%, #dfe4e6 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
.toggles { display: grid; gap: 4px; }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; font-weight: 500; }
.tg + .tg { border-top: 1px solid var(--line); }
.tg small { display: block; color: var(--ink-3); font-size: .85rem; font-weight: 400; }
.sw-i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: #d8dfe1; transition: background-color .25s ease; }
.sw-i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg input:checked + .sw-i { background: var(--teal); }
.tg input:checked + .sw-i::after { transform: translateX(-18px); }
html[dir="ltr"] .tg input:checked + .sw-i::after { transform: translateX(18px); }
.tg input:focus-visible + .sw-i { outline: 3px solid var(--apricot); outline-offset: 2px; }
.run { width: 100%; }
.log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.log li { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .95rem; transition: color .3s ease; }
.log li i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: background-color .3s ease, border-color .3s ease; }
.log li i svg { width: 12px; height: 12px; color: #fff; opacity: 0; transition: opacity .2s ease; }
.log li.doing { color: var(--ink); }
.log li.doing i { border-color: var(--apricot); border-top-color: transparent; animation: spin .8s linear infinite; }
.log li.done { color: var(--ink); }
.log li.done i { background: var(--good); border-color: var(--good); }
.log li.done i svg { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { margin: 14px 0 0; color: var(--ink-3); font-size: .88rem; }

/* المزايا: تبويبات تفاعلية */
.ftabs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 34px; align-items: start; }
.tablist { display: grid; gap: 8px; position: sticky; top: 100px; }
.tab { display: flex; gap: 14px; align-items: flex-start; width: 100%; padding: 18px; border-radius: 18px; border: 0; background: transparent; color: var(--ink); text-align: start; cursor: pointer; transition: background-color .25s ease, box-shadow .25s ease; }
.tab:hover { background: rgba(255,255,255,.6); }
.tab[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-sm); }
.tab .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); transition: background-color .25s ease, color .25s ease; }
.tab[aria-selected="true"] .ic { background: var(--teal); color: #fff; }
.tab .ic svg { width: 22px; height: 22px; }
.tab b { display: block; font: 800 1.08rem/1.4 var(--display); }
.tab span.d { display: block; color: var(--ink-3); font-size: .92rem; line-height: 1.5; margin-top: 2px; }
.tab .new { display: inline-block; margin-inline-start: 6px; padding: 1px 9px; border-radius: 99px; background: var(--apricot); color: var(--night); font: 700 .72rem/1.6 var(--text); vertical-align: middle; }
.tabpanel { border-radius: 28px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 34px; min-height: 560px; animation: panelIn .5s var(--ease); }
.tabpanel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tabpanel h3 { font-size: 1.7rem; font-weight: 900; margin-bottom: 8px; }
.tabpanel > p { margin: 0 0 24px; color: var(--ink-2); max-width: 36em; }
.pv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: center; }
.pv-grid .cmp { aspect-ratio: 4 / 5; border-radius: 22px; box-shadow: var(--shadow-sm); background: #e9e4dc; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; color: var(--ink-2); }
.points svg { flex: none; width: 24px; height: 24px; margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); }

/* الإضاءة: اضغط مطولًا لترى الأصل */
.hold { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: #f3ece2; cursor: pointer; box-shadow: var(--shadow-sm); user-select: none; -webkit-user-select: none; border: 0; padding: 0; width: 100%; }
.hold img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .45s ease; filter: drop-shadow(0 24px 22px rgba(19,38,45,.25)); }
.hold.raw img, .hold:active img { filter: sepia(.45) brightness(.78) contrast(.9) saturate(.85); }
.hold .tag { top: 16px; }
.hold .tag-after { right: 16px; }
.hold.raw .tag-after, .hold:active .tag-after { opacity: 0; }
.hold .tag-before { left: 16px; opacity: 0; }
.hold.raw .tag-before, .hold:active .tag-before { opacity: 1; }
.hold .hint { bottom: 16px; }

/* رفع الدقة: عدسة مكبّرة */
.zoom { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #eef4f6, #cfe1e6); box-shadow: var(--shadow-sm); }
.zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.zoom { --p: 50%; direction: ltr; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.zoom img.lo { image-rendering: pixelated; clip-path: inset(0 calc(100% - var(--p)) 0 0); pointer-events: none; }
.zoom img.hi { clip-path: inset(0 0 0 var(--p)); pointer-events: none; }
.zoom .bar .knob { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.zoom .tag-before { left: 16px; top: 16px; }
.zoom .tag-after { right: 16px; top: 16px; }
.res { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.res span { padding: 8px 14px; border-radius: 12px; background: var(--bg); font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.res span b { color: var(--teal); }

/* المعالجة التلقائية: منتجات تدخل وتخرج جاهزة */
.belt { position: relative; height: 420px; border-radius: 22px; background: var(--night); overflow: hidden; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 26px; gap: 18px; color: #fff; }
.belt::before { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 10px, transparent 10px 20px); }
.lane { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.lane h4 { margin: 0 0 4px; font: 700 .85rem var(--text); color: rgba(255,255,255,.6); }
.pc { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-size: .9rem; animation: cardIn .6s var(--ease) both; }
.pc img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.pc.ok { background: #fff; color: var(--ink); }
.pc.ok img { background: #f3ece2; object-fit: contain; }
.pc small { display: block; opacity: .7; font-size: .8rem; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.core { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--apricot); box-shadow: 0 0 0 10px rgba(255,164,110,.12), 0 20px 50px -10px rgba(255,164,110,.7); }
.core img { width: 46px; height: 46px; }
.core.busy { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 22px rgba(255,164,110,0), 0 20px 50px -10px rgba(255,164,110,.9); } }

/* الربح: لوحة مصغّرة بأرقام حية */
.pf { display: grid; gap: 14px; }
.pf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px; border-radius: 18px; background: var(--bg); }
.kpi small { display: block; color: var(--ink-3); font-size: .85rem; }
.kpi b { display: block; margin-top: 6px; font: 900 1.7rem/1.2 var(--display); }
.kpi b.pos { color: var(--good); }
.kpi em { font-style: normal; font-size: .82rem; color: var(--good); font-weight: 700; }
.pf-chart { position: relative; height: 200px; padding: 16px; border-radius: 18px; background: var(--bg); display: flex; align-items: flex-end; gap: 6px; direction: ltr; }
.pf-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--teal-3); transform-origin: bottom; animation: grow .8s var(--ease) both; }
.pf-chart i.neg { background: #e89a9a; }
.pf-chart i.hi { background: var(--teal); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pf-rows { border-radius: 18px; background: var(--bg); padding: 6px 16px; }
.pf-rows div { display: flex; justify-content: space-between; padding: 10px 0; font-size: .95rem; }
.pf-rows div + div { border-top: 1px solid var(--line); }
.pf-rows b { font-weight: 700; }
.plan-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; padding: 8px 14px; border-radius: 12px; background: var(--apricot-tint); color: #8a4a1f; font-weight: 700; font-size: .9rem; }

/* معرض قبل/بعد */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cmp.bgpeach { --bgc: linear-gradient(160deg, #fff4ec, #ffd2b4); }
.cmp.bgcream { --bgc: #f3ece2; }
.gallery .cmp { aspect-ratio: 1 / 1; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* الأسعار */
.billing { display: flex; justify-content: center; margin-bottom: 30px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 36px 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.plan:hover { transform: translateY(-4px); }
.plan-name { font: 800 1.25rem var(--display); }
.plan-for { color: var(--ink-3); font-size: .98rem; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.price b { font: 900 3.6rem/1 var(--display); }
.price span { color: var(--ink-3); }
.quota { font-weight: 700; color: var(--teal); padding: 11px 16px; border-radius: 14px; background: var(--teal-tint); margin-top: 16px; align-self: flex-start; }
.plan ul { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: .97rem; color: var(--ink-2); }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--teal-2); }
.plan li.off { color: var(--ink-3); opacity: .7; }
.plan li.off svg { color: var(--ink-3); }
.plan.featured { background: var(--night); color: #fff; box-shadow: 0 0 0 2px var(--apricot), 0 40px 70px -30px rgba(11,42,50,.8); }
.plan.featured .plan-name, .plan.featured .price b { color: #fff; }
.plan.featured .plan-for, .plan.featured .price span { color: rgba(255,255,255,.66); }
.plan.featured .quota { background: var(--apricot); color: var(--night); }
.plan.featured ul { border-color: rgba(255,255,255,.14); }
.plan.featured li { color: rgba(255,255,255,.82); }
.plan.featured li svg { color: var(--apricot); }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 26px; padding: 4px 12px; border-radius: 99px; background: var(--apricot); color: var(--night); font: 700 .8rem/1.6 var(--text); }
.plan.match { box-shadow: 0 0 0 3px var(--teal), var(--shadow-md); transform: translateY(-6px); }
.plan.featured.match { box-shadow: 0 0 0 3px var(--apricot), 0 40px 70px -30px rgba(11,42,50,.8); }
.plan .pick-me { position: absolute; top: -13px; inset-inline-end: 26px; padding: 4px 12px; border-radius: 99px; background: var(--teal); color: #fff; font: 700 .8rem/1.6 var(--text); opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s var(--ease); }
.plan.match .pick-me { opacity: 1; transform: none; }
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; margin-bottom: 40px; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.calc-in { padding: 34px; display: grid; gap: 26px; }
.calc h3 { font-size: 1.4rem; font-weight: 900; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; margin-bottom: 10px; }
.field label output { font: 900 1.6rem/1 var(--display); color: var(--teal); }
.field input[type=range] { width: 100%; accent-color: var(--teal); height: 28px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg); gap: 4px; }
.seg button { min-width: 52px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--teal); box-shadow: var(--shadow-sm); }
.calc-out { padding: 34px; background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.calc-out small { color: rgba(255,255,255,.6); font-size: .95rem; }
.calc-out .need { font: 900 3rem/1.1 var(--display); }
.calc-out .rec { font: 800 1.5rem var(--display); color: var(--apricot); }
.calc-out p { margin: 6px 0 0; color: rgba(255,255,255,.72); }
.calc-out .meter { height: 10px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 12px; direction: ltr; }
.calc-out .meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--apricot); transition: width .5s var(--ease); }
.fine { margin: 18px 0 0; color: var(--ink-3); font-size: .92rem; }

/* الخصوصية */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust div { padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.trust i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); margin-bottom: 18px; }
.trust i svg { width: 24px; height: 24px; }
.trust h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--ink-2); }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq details { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font: 700 1.12rem var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal); font: 700 1.25rem/1 var(--text); transition: transform .3s var(--ease), background-color .3s ease, color .3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--apricot); color: var(--night); }
.faq details p { margin: 0; padding: 0 26px 24px; color: var(--ink-2); }

/* الخاتمة والتذييل */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; padding: 130px 0; text-align: center; }
.closing::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(255,164,110,.35), rgba(255,164,110,0)); }
.closing h2 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 14em; margin-inline: auto; }
.closing h2 em { font-style: normal; color: var(--apricot); }
.closing p { color: rgba(255,255,255,.72); margin: 20px auto 34px; max-width: 32em; font-size: 1.15rem; }
.closing .cta-row { justify-content: center; }
.foot { background: var(--night); color: rgba(255,255,255,.6); font-size: .95rem; padding: 0 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a { text-decoration: none; color: rgba(255,255,255,.8); }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand { color: #fff; font-size: 1.1rem; }
.foot .brand img { width: 24px; height: 24px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero .cmp { transform: none; }
  h1 .hl::after { transform: scaleX(1); }
}
@media (prefers-reduced-transparency: reduce) {
  .top.light { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .sheet { position: fixed; z-index: 29; inset: 0; display: block; padding: 96px 24px 24px; background: rgba(250,248,244,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; }
  .sheet a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font: 800 1.5rem var(--display); }
  .sheet a[aria-current="page"] { color: var(--teal); }
  body.menu-open .sheet { opacity: 1; visibility: visible; }
  body.menu-open .top { color: var(--ink); }
  body.menu-open .top .lang, body.menu-open .top .menu-btn { border-color: var(--line); background: var(--surface); color: var(--teal); }
  .hero { padding: 120px 0 100px; }
  .hero-sub { padding: 124px 0 70px; }
  .hero-grid, .faq-grid, .studio, .ftabs, .calc, .pv-grid { grid-template-columns: 1fr; gap: 40px; }
  .stage { max-width: 520px; margin-inline: auto; width: 100%; }
  .doors { grid-template-columns: 1fr 1fr; }
  .panel, .tablist { position: static; }
  .tablist { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .studio .cmp { max-width: 560px; max-height: none; }
  .pv-grid .cmp, .hold, .zoom { max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { gap: 8px; min-height: 66px; }
  .brand { font-size: 1.2rem; }
  .btn-sm { padding: 0 14px; }
  .hero { padding: 104px 0 84px; }
  .cta-row .btn { flex: 1 1 auto; }
  .float { display: none; }
  .sec { padding: 80px 0; }
  .doors, .steps, .plans, .trust, .gallery, .pf-kpis { grid-template-columns: 1fr; }
  .step + .step { border-inline-start: 0; border-top: 1px solid var(--line); }
  .num { font-size: 4rem; }
  .tabpanel { padding: 22px; min-height: 0; }
  .tablist { grid-template-columns: 1fr; }
  .belt { grid-template-columns: 1fr; height: auto; padding: 22px; }
  .belt::before { display: none; }
  .core { margin: 0 auto; }
  .calc-in, .calc-out { padding: 24px; }
  .closing { padding: 96px 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .marquee span { font-size: 1.1rem; }
  .btn-login { padding: 0 12px; }
}
