/* Yarak mascot — homepage introduction. Isolated from the SEO/content layer. */
.ir-home-ref-brand-word{
  color:#f5a30a;
}

.ir-home-yarak-intro{
  position:relative;
  display:flex;
  direction:rtl;
  align-items:center;
  gap:22px;
  min-height:190px;
  margin-top:22px;
  padding:22px 24px 18px;
  overflow:hidden;
  border:1px solid rgba(19,145,137,.22);
  border-radius:24px;
  background:linear-gradient(135deg,#f4fffc 0%,#fffdf7 52%,#fff7ed 100%);
  box-shadow:0 12px 32px rgba(15,23,42,.05);
}
.ir-home-yarak-intro::before{
  content:"";
  position:absolute;
  left:-48px;
  bottom:-82px;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(19,145,137,.16),rgba(19,145,137,0) 68%);
  pointer-events:none;
}
.ir-home-yarak-copy{
  position:relative;
  z-index:2;
  min-width:0;
  flex:1 1 auto;
}
.ir-home-yarak-kicker{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  margin-bottom:8px;
  padding:0 11px;
  border:1px solid rgba(19,145,137,.20);
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:#087d76;
  font-size:11.5px;
  font-weight:900;
}
.ir-home-yarak-copy strong{
  display:block;
  margin:0;
  color:#18212f;
  font-size:18px;
  font-weight:950;
  line-height:1.75;
}
.ir-home-yarak-copy p{
  margin:4px 0 9px;
  color:#697482;
  font-size:12.5px;
  line-height:1.9;
}
.ir-home-yarak-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#0b8179;
  text-decoration:none;
  font-size:12.5px;
  font-weight:900;
}
.ir-home-yarak-link:hover{color:#075e59}
.ir-home-yarak-link__icon{
  display:inline-flex;
  width:17px;
  height:17px;
  flex:0 0 17px;
  background:currentColor;
  mask:url("../icons/ui/arrows/arrow2_left_black.svg") center/17px 17px no-repeat;
  -webkit-mask:url("../icons/ui/arrows/arrow2_left_black.svg") center/17px 17px no-repeat;
}
.ir-home-yarak-visual{
  position:relative;
  z-index:2;
  display:flex;
  flex:0 0 184px;
  align-self:center;
  align-items:flex-end;
  justify-content:center;
  height:176px;
  margin:0;
}
.ir-home-yarak-visual img{
  display:block;
  width:180px;
  max-width:none;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 12px 14px rgba(15,23,42,.11));
}

/* YR-002 — Yarak becomes the visual guide in the "Why Iranigram" section.
   The trust copy and proof points remain normal HTML beside the mascot. */
@media(min-width:1024px){
  .ir-home-ref-brand-visual{
    overflow:visible;
  }
  .ir-home-ref-brand-visual::before{
    left:16px !important;
    top:8px !important;
    width:270px !important;
    height:250px !important;
    border-radius:48% 52% 52% 48%;
    background:
      radial-gradient(circle at 44% 44%,rgba(20,184,166,.20) 0%,rgba(20,184,166,.08) 36%,rgba(245,163,10,.08) 55%,rgba(255,255,255,0) 72%) !important;
  }
  .ir-home-ref-brand-visual::after{
    content:"";
    position:absolute;
    left:31px;
    top:-2px;
    z-index:3;
    width:238px;
    height:252px;
    background:url("../brand/yarak/yarak-product-guide.webp") center bottom/contain no-repeat;
    filter:drop-shadow(0 16px 20px rgba(15,23,42,.14));
    pointer-events:none;
  }
  .ir-home-ref-brand-logo{
    display:none !important;
  }
  .ir-home-ref-brand-label{
    left:50% !important;
    transform:translateX(-50%);
    bottom:2px !important;
    z-index:5 !important;
    width:206px !important;
    min-width:206px !important;
    height:72px !important;
    padding:0 18px !important;
    border:1px solid rgba(245,163,10,.28);
    background:rgba(17,26,49,.96) !important;
    box-shadow:0 14px 30px rgba(17,26,49,.18) !important;
  }
  .ir-home-ref-brand-label strong{
    font-size:18px !important;
  }
  .ir-home-ref-brand-label span{
    margin-top:4px !important;
    font-size:10.5px !important;
    line-height:1.55 !important;
  }
  .ir-home-ref-mini-fact{
    z-index:6 !important;
    width:136px !important;
    min-height:62px !important;
    padding:10px 38px 10px 12px !important;
  }
  .ir-home-ref-mini-fact::after{
    right:12px !important;
    left:auto !important;
  }
  .ir-home-ref-mini-fact strong{
    font-size:10.7px !important;
    line-height:1.45 !important;
  }
  .ir-home-ref-mini-fact span{
    margin-top:3px !important;
    font-size:9.6px !important;
    line-height:1.5 !important;
  }
}

@media(max-width:1023px){
  body.ir-page-home .ir-home-yarak-intro{
    gap:13px;
    min-height:142px;
    margin-top:18px;
    padding:15px 15px 13px;
    border-radius:20px;
  }
  body.ir-page-home .ir-home-yarak-kicker{
    min-height:26px;
    margin-bottom:5px;
    padding:0 9px;
    font-size:10px;
  }
  body.ir-page-home .ir-home-yarak-copy strong{font-size:14.5px;line-height:1.75}
  body.ir-page-home .ir-home-yarak-copy p{margin:3px 0 6px;font-size:11px;line-height:1.8}
  body.ir-page-home .ir-home-yarak-link{font-size:10.8px}
  body.ir-page-home .ir-home-yarak-link__icon{
    width:15px;
    height:15px;
    flex-basis:15px;
    mask-size:15px 15px;
    -webkit-mask-size:15px 15px;
  }
  body.ir-page-home .ir-home-yarak-visual{
    flex-basis:122px;
    height:124px;
    margin:0;
  }
  body.ir-page-home .ir-home-yarak-visual img{width:122px}

  body.ir-page-home .ir-home-ref-brand-visual{
    position:relative;
    min-height:300px;
    overflow:visible;
    isolation:isolate;
  }
  body.ir-page-home .ir-home-ref-brand-visual::before{
    content:"";
    position:absolute;
    left:50%;
    top:16px;
    z-index:0;
    width:min(250px,76vw);
    height:230px;
    transform:translateX(-50%);
    border-radius:50%;
    background:radial-gradient(circle,rgba(20,184,166,.18),rgba(245,163,10,.07) 50%,transparent 72%);
    pointer-events:none;
  }
  body.ir-page-home .ir-home-ref-brand-visual::after{
    content:"";
    position:absolute;
    left:50%;
    top:4px;
    z-index:2;
    width:190px;
    height:220px;
    transform:translateX(-50%);
    background:url("../brand/yarak/yarak-product-guide.webp") center bottom/contain no-repeat;
    filter:drop-shadow(0 13px 18px rgba(15,23,42,.13));
    pointer-events:none;
  }
  body.ir-page-home .ir-home-ref-brand-logo{display:none !important}
  body.ir-page-home .ir-home-ref-brand-label{
    position:absolute;
    left:50%;
    bottom:2px;
    z-index:4;
    width:190px;
    min-width:190px;
    height:66px;
    transform:translateX(-50%);
  }
  body.ir-page-home .ir-home-ref-brand-label strong{
    font-size:16px !important;
  }
  body.ir-page-home .ir-home-ref-brand-label span{
    font-size:10px !important;
    line-height:1.5 !important;
  }
  body.ir-page-home .ir-home-ref-mini-fact{
    width:136px !important;
    min-height:62px !important;
    padding:10px 38px 10px 12px !important;
  }
  body.ir-page-home .ir-home-ref-mini-fact::after{
    right:12px !important;
    left:auto !important;
  }
}

@media(max-width:420px){
  body.ir-page-home .ir-home-yarak-intro{gap:9px;padding-right:11px;padding-left:9px}
  body.ir-page-home .ir-home-yarak-visual{flex-basis:104px;height:110px}
  body.ir-page-home .ir-home-yarak-visual img{width:108px}
  body.ir-page-home .ir-home-yarak-copy strong{font-size:14px}
  body.ir-page-home .ir-home-yarak-copy p{font-size:10.5px}
  body.ir-page-home .ir-home-yarak-kicker{font-size:9.6px}

  body.ir-page-home .ir-home-ref-brand-visual{
    min-height:260px;
  }
  body.ir-page-home .ir-home-ref-brand-visual::before{
    top:12px;
    width:210px;
    height:190px;
  }
  body.ir-page-home .ir-home-ref-brand-visual::after{
    top:2px;
    width:164px;
    height:190px;
  }
  body.ir-page-home .ir-home-ref-brand-label{
    bottom:0;
    width:176px;
    min-width:176px;
    height:58px;
  }
  body.ir-page-home .ir-home-ref-brand-label strong{
    font-size:15px !important;
  }
  body.ir-page-home .ir-home-ref-brand-label span{
    font-size:9px !important;
  }
  body.ir-page-home .ir-home-ref-mini-fact{
    display:none !important;
  }
}

html.dark .ir-home-ref-brand-word{
  color:#f6b53f;
}
html.dark .ir-home-yarak-intro{
  border-color:rgba(47,201,188,.22);
  background:linear-gradient(135deg,#0d2130 0%,#101f2d 55%,#1c2530 100%);
  box-shadow:0 12px 30px rgba(0,0,0,.14);
}
html.dark .ir-home-yarak-intro::before{
  background:radial-gradient(circle,rgba(40,198,183,.18),rgba(40,198,183,0) 68%);
}
html.dark .ir-home-yarak-kicker{
  border-color:rgba(60,205,192,.24);
  background:rgba(13,33,48,.72);
  color:#63d9cd;
}
html.dark .ir-home-yarak-copy strong{color:#f5f8fb}
html.dark .ir-home-yarak-copy p{color:#9fabb9}
html.dark .ir-home-yarak-link{color:#67d9ce}
html.dark .ir-home-yarak-link:hover{color:#92eee5}
html.dark .ir-home-ref-brand-visual::before{
  background:radial-gradient(circle,rgba(40,198,183,.18),rgba(245,181,63,.06) 50%,transparent 72%) !important;
}
