/* ================================================================ نصيح — home: platform section (hero + file search + capabilities)
   Rules:
   • The picture is never cropped: it keeps its proportions (contain); if the screen is short it gets smaller and the sides
     are filled with a soft, blurred copy of the same picture.
   • The content below (questions + six cards) keeps its natural height; on desktop the section fills the column so its
     bottom lines up with the assistant panel.
   • Phones: everything stacks, the picture is shown whole at full width. */
#naseeh-platform{--blue:#1f5fae;--navy:#0f2a4a;--orange:#ee6a3c;--ln:#dae7fa;
  position:relative;display:flex;flex-direction:column;font-family:'Plex Arabic',Tahoma,sans-serif;color:var(--navy);direction:rtl;
  background:linear-gradient(#fff,#f6faff);border:1px solid #e3edf9;border-radius:22px;overflow:hidden;isolation:isolate}
#naseeh-platform *{box-sizing:border-box}
#naseeh-platform button,#naseeh-platform input{font:inherit}
#naseeh-platform button:focus-visible,#naseeh-platform input:focus-visible{outline:3px solid var(--orange);outline-offset:3px}

/* ---------- hero */
.ns-hero{position:relative;z-index:1;flex:0 1 auto;aspect-ratio:1536/505;min-height:0;line-height:0;background:transparent}
.ns-hero::before{display:none}
.ns-hero img{position:relative;display:block;margin:0 auto;width:auto;max-width:100%;height:100%;aspect-ratio:1536/505;object-fit:contain;object-position:center bottom;filter:saturate(.92) contrast(1.03);-webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.4) 6%,#000 16%,#000 84%,rgba(0,0,0,.4) 94%,transparent 100%),linear-gradient(180deg,#000 93%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.4) 6%,#000 16%,#000 84%,rgba(0,0,0,.4) 94%,transparent 100%),linear-gradient(180deg,#000 93%,transparent 100%);mask-composite:intersect}
.ns-flow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
.ns-flow path{fill:none;stroke:none}
.ns-tint{position:absolute;inset:0;pointer-events:none;z-index:2;background:
  linear-gradient(180deg,rgba(10,59,120,.06),transparent 28%),
  linear-gradient(0deg,#fbfdff 0,rgba(251,253,255,0) 6%)}
.ns-spark{display:none}

/* ---------- file search, sitting on the bottom edge of the picture */
#naseeh-platform .ns-form{flex-direction:row;max-width:none;margin-top:0;position:absolute;z-index:3;left:50%;bottom:0;transform:translate(-50%,118%);width:min(600px,calc(100% - 48px));line-height:normal;
  display:flex;align-items:center;gap:8px;padding:6px;border:1px solid var(--ln);border-radius:18px;background:#fff;box-shadow:0 14px 30px -18px rgba(31,95,174,.5)}
#naseeh-platform .ns-form:focus-within{border-color:#7bb5f4}
#naseeh-platform .ns-form.ns-pulse{animation:ns-pulse 1s ease}
@keyframes ns-pulse{30%{box-shadow:0 0 0 6px rgba(31,95,174,.18),0 14px 30px -18px rgba(31,95,174,.5)}}
#naseeh-platform .ns-fi{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:12px;background:#eef5ff;color:var(--blue)}
#naseeh-platform .ns-fi svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#naseeh-platform .ns-form input{flex:1;min-width:0;height:44px;border:0;padding:0 4px;font-size:14px;color:var(--navy);background:transparent}
#naseeh-platform .ns-form input:focus{outline:none}
#naseeh-platform .ns-form input::placeholder{color:#8093b1}
#naseeh-platform .ns-submit{flex:none;display:inline-flex;align-items:center;gap:6px;height:44px;border:0;border-radius:12px;background:linear-gradient(120deg,#1661cc,#458fe5);color:#fff;padding:0 18px;font-weight:700;white-space:nowrap;box-shadow:0 6px 16px #1f5fae30;cursor:pointer}
#naseeh-platform .ns-submit:hover{background:linear-gradient(120deg,#0f53b5,#367fd8)}
#naseeh-platform .ns-submit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ---------- content */
.ns-content{position:relative;flex:1 0 auto;display:flex;flex-direction:column;justify-content:space-evenly;gap:12px;padding:76px 22px 18px}
.ns-tags{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.ns-tags button{height:34px;font-size:12.5px;padding:0 15px;border-radius:999px;border:1px solid #deebfc;background:#f9fcff;color:var(--blue);font-weight:600;cursor:pointer;white-space:nowrap}
.ns-tags button:hover{background:var(--blue);color:#fff;border-color:var(--blue)}
.ns-label{text-align:center}
.ns-label span{display:inline-flex;gap:10px;align-items:center;border:1px solid #deebfc;border-radius:30px;padding:5px 18px;background:#ffffffd9;font-size:13px;font-weight:600}
.ns-label b{color:var(--orange)}
.ns-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ns-card{display:flex;align-items:center;gap:12px;min-height:84px;padding:12px 14px;border:1px solid var(--ln);border-radius:16px;background:linear-gradient(135deg,#fff,#f9fcff);text-align:right;color:var(--navy);box-shadow:0 6px 18px #3673b506;cursor:pointer;transition:transform .25s,border-color .25s,box-shadow .25s}
.ns-card:hover,.ns-card:focus-visible{transform:translateY(-3px);border-color:#7bb5f4;box-shadow:0 10px 26px #2465b214}
.ns-icon{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;background:linear-gradient(145deg,#e7f1ff,#f5faff);border-radius:14px;color:var(--blue)}
.ns-icon svg{width:26px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 3px 3px #1f5fae20)}
.ns-copy{flex:1;min-width:0}
.ns-copy strong{display:block;font-size:15.5px;line-height:1.4}
.ns-copy small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-top:3px;color:#7084a7;font-size:12px;line-height:1.5;overflow:hidden}
.ns-arrow{flex:none;display:grid;place-items:center;color:#367dd8;transition:transform .25s}
.ns-arrow svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ns-card:hover .ns-arrow{transform:translateX(-4px)}

/* ---------- desktop: fill the column, the picture gives way first */
@media (min-width:1100px){
  .analysis > #welcome:not([hidden]){flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  #welcome > #naseeh-platform{flex:1 1 auto;min-height:0}
  .ns-card{min-height:clamp(76px,9.5vh,108px)}
  .ns-hero{min-height:150px}
}
@media (min-width:1100px) and (max-height:860px){
  .ns-content{gap:10px;padding:70px 18px 14px}
  .ns-card{padding:10px 12px}.ns-icon{width:42px;height:42px}.ns-icon svg{width:23px;height:25px}
  .ns-copy strong{font-size:14.5px}.ns-tags button{height:32px}
}
@media (min-width:1100px) and (max-height:720px){ .ns-label{display:none} }
/* ---------- tablet */
@media (max-width:1099px){ .ns-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
/* ---------- phone */
@media (max-width:600px){
  #naseeh-platform{border-radius:16px}
  .ns-hero{aspect-ratio:auto;min-height:0;height:auto;background:transparent}
  .ns-hero::before,.ns-flow,.ns-tint{display:none}
  .ns-hero img{height:auto}
  #naseeh-platform .ns-form{position:relative;left:auto;bottom:auto;transform:none;width:auto;margin:10px 10px 0;flex-wrap:wrap}
  #naseeh-platform .ns-fi{display:none}
  #naseeh-platform .ns-form input{flex:1 1 100%;height:46px;border:1px solid #e8effa;border-radius:12px;padding:0 12px;font-size:15px}
  #naseeh-platform .ns-submit{flex:1 1 100%;justify-content:center;height:46px}
  .ns-content{padding:12px 10px 14px;gap:12px}
  .ns-tags{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  .ns-tags::-webkit-scrollbar{display:none}
  .ns-grid{grid-template-columns:minmax(0,1fr)}
  .ns-card{min-height:72px}
}
@media(prefers-reduced-motion:reduce){#naseeh-platform *{animation:none!important;transition:none!important}.ns-flow{display:none}}
