/* سَمّ — موقع تعريفي. ألوان الشعار: برتقالي #E76043 وتركوازي #27A5A5 */
:root {
  --coral: #E76043;
  --coral-dark: #C94A2F;
  --coral-50: #FFF1EC;
  --teal: #27A5A5;
  --teal-dark: #17797A;
  --teal-ink: #0F5455;
  --mint: #E1F4F4;
  --cream: #FBF7F5;
  --sand: #F4EDE8;
  --ink: #1D2626;
  --ink-2: #4A5454;
  --muted: #6B7373;
  --line: #E8E1DC;
  --white: #fff;
  --r: 28px;
  --r-sm: 16px;
  --shadow: 0 2px 6px rgba(29,38,38,.05), 0 18px 40px -18px rgba(29,38,38,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
  --head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.75 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  overflow-x: clip;
}
html { overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; text-wrap: balance; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-block; font-weight: 600; font-size: 14px; color: var(--teal-dark);
  background: var(--mint); padding: 6px 14px; border-radius: 99px; margin-bottom: 18px;
}
.eyebrow.light { background: rgba(255,255,255,.16); color: #fff; }
.hl { color: var(--coral); }
.hl-teal { color: var(--teal); }
.muted { color: var(--muted); }

/* أزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 10px 22px; border-radius: 99px; border: 0; cursor: pointer;
  font-weight: 600; transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.btn-lg { min-height: 56px; padding: 12px 30px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(231,96,67,.7); }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal-dark); transform: translateY(-2px); }

/* ===== الشريط العلوي ===== */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(251,247,245,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand img { width: 66px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.links { display: flex; gap: 6px; margin-inline-start: auto; }
.links a { padding: 8px 14px; border-radius: 99px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.links a:hover { background: var(--mint); color: var(--teal-ink); }
.menu-btn { display: none; }
.links a.login-link { color: var(--teal-dark); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--mint); display: inline-flex; align-items: center; gap: 6px; }
.links a.login-link::before { content: ""; width: 16px; height: 16px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.links a.login-link:hover { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--teal); }

/* ===== الواجهة ===== */
.hero { position: relative; padding: 40px 0 90px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.b1 { width: 460px; height: 460px; background: #FFD9CC; top: -120px; inset-inline-end: -120px; animation: drift 14s ease-in-out infinite alternate; }
.b2 { width: 380px; height: 380px; background: #BFE8E8; bottom: -140px; inset-inline-start: -100px; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.12); } }

.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); font-weight: 700; letter-spacing: -.5px; margin-bottom: 22px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .18em; z-index: -1;
  background: #FFD3C6; border-radius: 99px; transform: scaleX(0); transform-origin: right;
  animation: underline .9s .9s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li {
  font-size: 14px; font-weight: 500; color: var(--teal-ink); background: #fff;
  padding: 6px 14px 6px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line);
  display: inline-flex; align-items: center; gap: 8px;
}
.pills li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* جوال الواجهة */
.hero-visual { position: relative; justify-self: center; padding: 30px 40px; }
.phone {
  width: 280px; aspect-ratio: 9/18.5; background: #1D2626; border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(15,84,85,.45), 0 0 0 2px #2c3838 inset;
  animation: floaty 6s ease-in-out infinite; position: relative;
}
@keyframes floaty { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 86px; height: 24px; background: #1D2626; border-radius: 99px; z-index: 2; }
.screen {
  height: 100%; background: var(--cream); border-radius: 36px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; padding: 52px 18px 20px; gap: 6px;
}
.screen-logo { width: 64px; }
.screen-store { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.status {
  width: 100%; background: #fff; border-radius: 22px; padding: 22px 14px 18px; text-align: center;
  box-shadow: var(--shadow); display: grid; justify-items: center; gap: 4px; transition: background .5s;
}
.ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--mint); position: relative; transition: background .5s; }
.ring span { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--teal); border-top-color: transparent; animation: spin 1s linear infinite; }
.status[data-state="ready"] .ring { background: var(--coral-50); }
.status[data-state="ready"] .ring span { border: 0; width: 34px; height: 18px; border-radius: 0; animation: none; border-bottom: 5px solid var(--coral); border-left: 5px solid var(--coral); transform: rotate(-45deg) translate(-3px, -3px); }
.status[data-state="ready"] .ring { animation: pop .6s var(--ease); }
@keyframes pop { 40% { transform: scale(1.18); } }
@keyframes spin { to { transform: rotate(360deg); } }
.st-title { font-family: var(--head); font-weight: 700; font-size: 19px; }
.st-sub { font-size: 13px; color: var(--muted); }
.status[data-state="prep"] .st-ready, .status[data-state="ready"] .st-prep { display: none; }
.status[data-state="ready"] .st-title { color: var(--coral); }
.bar { width: 100%; height: 8px; border-radius: 99px; background: var(--mint); margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--teal); border-radius: inherit; }
.status[data-state="prep"] .bar i { animation: fill 3.6s linear forwards; }
.status[data-state="ready"] .bar i { width: 100%; background: var(--coral); }
@keyframes fill { to { width: 100%; } }
.screen-items { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.screen-items span { font-size: 12px; background: #fff; border-radius: 99px; padding: 3px 12px; box-shadow: inset 0 0 0 1px var(--line); }

.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; background: #fff;
  padding: 10px 16px; border-radius: 18px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
  animation: floaty 5s ease-in-out infinite;
}
.chip svg { width: 22px; height: 22px; fill: currentColor; }
.chip-qr { top: 70px; inset-inline-end: -10px; color: var(--teal-dark); animation-delay: -1s; }
.chip-star { bottom: 110px; inset-inline-start: -20px; animation-delay: -2.5s; }
.chip-star span { color: #F2A93B; letter-spacing: 1px; }
.chip-bell { bottom: 30px; inset-inline-end: 0; background: var(--coral); color: #fff; animation-delay: -3.5s; }

/* ===== الشريط المتحرك ===== */
.ticker { background: var(--teal); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.5deg) scale(1.03); }
.ticker-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: slide 28s linear infinite; font-family: var(--head); font-weight: 600; font-size: clamp(20px, 2.6vw, 30px); white-space: nowrap; }
.ticker-track i { font-style: normal; color: #FFC2B2; }
@keyframes slide { to { transform: translateX(50%); } }

/* ===== كيف يشتغل: بطاقات متراكبة ===== */
.how { padding: 120px 0 80px; }
.how-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.how-head { position: sticky; top: 130px; }
.how-head h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 18px; }
.stack { display: grid; gap: 28px; padding-bottom: 40px; }
.stack-card {
  position: sticky; top: calc(110px + var(--i, 0) * 22px);
  min-height: 330px; border-radius: 34px; padding: 40px; display: grid;
  grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 10px 28px; align-items: end;
  box-shadow: 0 -6px 30px -14px rgba(29,38,38,.25); transform-origin: center top;
  will-change: transform; overflow: hidden;
}
.sc-num { font-family: var(--head); font-weight: 700; font-size: 84px; line-height: .9; opacity: .9; grid-column: 1; align-self: start; }
.sc-body { grid-column: 1; }
.sc-body h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 10px; }
.sc-body p { font-size: 17px; max-width: 30em; opacity: .9; }
.sc-art { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 150px; height: 150px; border-radius: 30px; display: grid; place-items: center; position: relative; }
.sc-art svg { width: 92px; height: 92px; }
.c-coral { background: var(--coral); color: #fff; }
.c-coral .sc-art { background: rgba(255,255,255,.16); color: #fff; }
.c-teal { background: var(--teal-dark); color: #fff; }
.c-teal .sc-art { background: rgba(255,255,255,.12); color: #fff; overflow: hidden; }
.c-mint { background: var(--mint); color: var(--teal-ink); }
.c-mint .sc-art { background: #fff; }
.c-cream { background: #fff; color: var(--ink); box-shadow: 0 -6px 30px -14px rgba(29,38,38,.25), inset 0 0 0 1.5px var(--line); }
.c-cream .sc-num { color: var(--coral); }
.c-cream .sc-art { background: var(--coral-50); }

.art-qr svg { animation: qr 2.4s ease-in-out infinite; }
@keyframes qr { 50% { transform: scale(.9); opacity: .75; } }
.scan-line { position: absolute; inset-inline: 22px; height: 3px; background: #FFC2B2; border-radius: 9px; box-shadow: 0 0 12px #FFC2B2; animation: scan 2s ease-in-out infinite alternate; top: 30px; }
@keyframes scan { to { top: 116px; } }
.art-snake, .art-stars { display: flex; justify-content: center; align-items: center; direction: ltr; }
.art-snake { gap: 3px; }
.art-snake i, .art-snake b { width: 16px; height: 16px; border-radius: 5px; background: var(--teal); animation: wig 1.2s ease-in-out infinite; }
.art-snake i:nth-child(1) { background: var(--teal-ink); }
.art-snake i:nth-child(2) { animation-delay: .1s; } .art-snake i:nth-child(3) { animation-delay: .2s; }
.art-snake i:nth-child(4) { animation-delay: .3s; } .art-snake i:nth-child(5) { animation-delay: .4s; }
.art-snake b { background: var(--coral); border-radius: 50%; margin-inline-start: 14px; animation: blink 1.2s infinite; }
@keyframes wig { 50% { transform: translateY(-8px); } }
@keyframes blink { 50% { transform: scale(.6); } }
.art-stars span { font-size: 22px; color: #F2A93B; animation: star 2.5s var(--ease) infinite; display: inline-block; }
.art-stars span:nth-child(2) { animation-delay: .12s; } .art-stars span:nth-child(3) { animation-delay: .24s; }
.art-stars span:nth-child(4) { animation-delay: .36s; } .art-stars span:nth-child(5) { animation-delay: .48s; }
@keyframes star { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-10px) scale(1.25); } }

/* ===== المميزات ===== */
.features { padding: 90px 0 110px; }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 50px); }
.sec-head .muted { margin-top: 10px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: #fff; border-radius: var(--r); padding: 30px; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s; position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile h3 { font-size: 22px; margin-bottom: 8px; }
.tile p { color: var(--ink-2); }
.t-big { grid-row: span 2; display: flex; flex-direction: column; }
.t-coral { background: var(--coral); color: #fff; box-shadow: none; }
.t-coral p { color: rgba(255,255,255,.9); }
.t-coral h3 { font-size: clamp(26px, 3vw, 36px); }
.t-teal { background: var(--teal-dark); color: #fff; box-shadow: none; }
.t-teal p { color: rgba(255,255,255,.88); }
.t-mint { background: var(--mint); box-shadow: none; }
.t-outline { background: transparent; box-shadow: none; border: 2px dashed #D9CFC8; grid-column: 1 / -1; }
.soon { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 12px; font-weight: 700; background: var(--coral-50); color: var(--coral-dark); padding: 3px 10px; border-radius: 99px; }
.crowd { margin-top: auto; padding-top: 40px; display: flex; gap: 10px; align-items: end; }
.crowd i { width: 44px; height: 70px; border-radius: 22px 22px 10px 10px; background: rgba(255,255,255,.22); position: relative; animation: leave 4s var(--ease) infinite; }
.crowd i::before { content: ""; position: absolute; top: -30px; left: 50%; translate: -50% 0; width: 28px; height: 28px; border-radius: 50%; background: inherit; }
.crowd i:nth-child(2) { animation-delay: .3s; } .crowd i:nth-child(3) { animation-delay: .6s; }
.crowd i:nth-child(4) { animation-delay: .9s; } .crowd i:nth-child(5) { animation-delay: 1.2s; }
@keyframes leave { 0%, 20% { transform: none; opacity: 1; } 55%, 70% { transform: translateX(-24px); opacity: .25; } 100% { transform: none; opacity: 1; } }

/* ===== شركاء النجاح ===== */
.partners { padding: 90px 0; background: #fff; border-block: 1px solid var(--line); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: slide 36s linear infinite; padding: 6px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.p-tile {
  width: 210px; height: 110px; border-radius: 24px; background: var(--cream); display: grid; place-items: center;
  font-family: var(--head); font-weight: 600; font-size: 20px; color: var(--ink-2); padding: 18px; text-align: center;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), background .3s;
}
.p-tile img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.p-tile:hover { transform: scale(1.04); background: var(--mint); }
.p-tile:hover img { filter: none; opacity: 1; }
.p-tile.invite { border: 2px dashed #D9CFC8; box-shadow: none; background: transparent; color: var(--teal-dark); font-size: 17px; line-height: 1.5; }
.p-tile.invite b { display: block; color: var(--coral); font-size: 22px; }

/* ===== آراء العملاء ===== */
.reviews { padding: 110px 0; overflow: hidden; }
.review-rail { display: flex; gap: 22px; width: max-content; animation: slide 50s linear infinite; padding: 10px 0 20px; }
.review-rail:hover { animation-play-state: paused; }
.rev {
  width: min(380px, 82vw); background: #fff; border-radius: var(--r); padding: 28px; position: relative;
  box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px;
}
.rev:nth-child(3n+2) { background: var(--mint); box-shadow: none; }
.rev:nth-child(3n+3) { background: var(--coral-50); box-shadow: none; }
.rev .stars { color: #F2A93B; letter-spacing: 2px; font-size: 18px; }
.rev .stars .off { color: #DDD4CE; }
.rev blockquote { margin: 0; font-size: 18px; line-height: 1.7; flex: 1; }
.rev .who { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.rev .av { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--head); }
.rev:nth-child(even) .av { background: var(--coral); }
.rev .who small { display: block; color: var(--muted); }
.sample-tag { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 11px; color: var(--muted); background: rgba(255,255,255,.7); padding: 2px 8px; border-radius: 99px; }

/* ===== التسجيل ===== */
.join { padding: 30px 0 110px; }
.join-in {
  background: var(--teal-dark); color: #fff; border-radius: 44px; padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden;
}
.join-in::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--teal); top: -180px; inset-inline-start: -140px; opacity: .55; }
.join-in::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--coral); bottom: -120px; inset-inline-start: 30%; opacity: .9; }
.join-text, .join-form { position: relative; z-index: 1; min-width: 0; }
.join-text h2 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 16px; }
.join-text p { font-size: 18px; opacity: .9; margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checks li::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 14px; flex: none; }

.join-form { background: #fff; color: var(--ink); border-radius: 32px; padding: clamp(22px, 3.4vw, 36px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13px; }
.field input {
  width: 100%; min-width: 0; min-height: 54px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--cream);
  padding: 10px 16px; font-size: 17px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input[dir="ltr"] { text-align: right; }
.field input::placeholder { color: #A9A29D; }
.field input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(39,165,165,.15); }
.field.bad input { border-color: #D14B32; background: #FFF6F4; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.err { color: #B3361E; font-size: 13px; min-height: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--teal-dark); text-decoration: underline; cursor: pointer; font-size: inherit; }
.form-msg { font-size: 14px; color: #B3361E; text-align: center; min-height: 0; }
.form-msg:empty { display: none; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.busy .spin { display: inline-block; }
.busy { pointer-events: none; opacity: .85; }

.done { position: absolute; inset: 0; background: #fff; border-radius: inherit; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 30px; animation: fadeIn .4s var(--ease); }
.done h3 { font-size: 30px; color: var(--teal-dark); }
.done p { color: var(--ink-2); }
.done-ico svg { width: 96px; height: 96px; fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.done-ico circle { stroke: var(--teal); stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s var(--ease) forwards; }
.done-ico path { stroke: var(--coral); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } }

/* ===== الأسئلة ===== */
.faq { padding: 30px 0 110px; }
.faq-in { max-width: 860px; }
.qa { display: grid; gap: 12px; }
.qa details { background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s; }
.qa details[open] { background: var(--mint); box-shadow: none; }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; font-size: 22px; color: var(--coral); transition: transform .35s var(--ease), background .3s;
}
.qa details[open] summary::after { transform: rotate(45deg); background: #fff; }
.qa details > div { padding: 0 24px 22px; color: var(--ink-2); }
.qa details[open] > div { animation: fadeIn .35s var(--ease); }

/* ===== الفوتر ===== */
.foot { background: var(--ink); color: #DCE3E3; padding: 64px 0 28px; border-radius: 44px 44px 0 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-brand img { width: 84px; height: auto; border-radius: 22px; }
.foot-brand p { font-family: var(--head); font-size: 22px; font-weight: 600; color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links a, .foot-links button { background: rgba(255,255,255,.07); border: 0; padding: 10px 18px; border-radius: 99px; cursor: pointer; font-size: 15px; transition: background .2s, color .2s; }
.foot-links a:hover, .foot-links button:hover { background: var(--coral); color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #9AA5A5; }

/* ===== نوافذ السياسات ===== */
.sheet {
  width: min(720px, 100% - 24px); max-height: min(86vh, 900px); border: 0; padding: 0; border-radius: 30px;
  background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.5);
}
.sheet[open] { animation: rise .4s var(--ease); display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(29,38,38,.5); backdrop-filter: blur(4px); }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 24px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream); cursor: pointer; font-size: 16px; }
.x:hover { background: var(--coral-50); color: var(--coral-dark); }
.sheet-body { padding: 8px 28px 28px; overflow-y: auto; }
.sheet-body h3 { font-size: 18px; margin: 22px 0 8px; color: var(--teal-dark); }
.sheet-body p, .sheet-body li { color: var(--ink-2); }
.sheet-body ul { padding-inline-start: 22px; margin: 0; display: grid; gap: 6px; }
.updated { margin-top: 22px; font-size: 13px; color: var(--muted) !important; }

/* ===== حركة الظهور ===== */
.reveal { opacity: 0; transform: translateY(28px); 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; } .d4 { transition-delay: .32s; }

/* ===== الشاشات الصغيرة ===== */
@media (max-width: 960px) {
  .hero-in, .how-in, .join-in { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .pills { justify-content: center; }
  .how-head { position: static; text-align: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .t-big { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 820px) {
  .links {
    position: fixed; inset: 78px 12px auto; flex-direction: column; background: #fff; border-radius: 24px;
    padding: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 14px 16px; font-size: 18px; }
  .nav-cta { margin-inline-start: auto; }
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer;
  }
  .menu-btn span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-cta { padding: 8px 16px; min-height: 42px; font-size: 15px; }
  .brand img { width: 46px; }
  .hero-visual { padding: 20px 10px; }
  .phone { width: 240px; }
  .chip { font-size: 13px; padding: 8px 12px; }
  .chip-star { inset-inline-start: -6px; }
  .chip-qr { inset-inline-end: -4px; }
  .stack-card { grid-template-columns: 1fr; padding: 28px; min-height: 340px; top: calc(92px + var(--i, 0) * 16px); }
  .sc-art { grid-column: 1; grid-row: auto; width: 110px; height: 110px; justify-self: start; order: -1; border-radius: 24px; }
  .sc-art svg { width: 66px; height: 66px; }
  .sc-num { position: absolute; top: 24px; inset-inline-end: 28px; font-size: 64px; }
  @keyframes scan { to { top: 80px; } }
  .bento { grid-template-columns: 1fr; }
  .t-big { grid-column: auto; }
  .join-in { border-radius: 32px; }
  .foot { border-radius: 32px 32px 0 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track, .marquee-track, .review-rail { animation: none !important; }
}
